#F0E68C
khaki
#F0E68C is the CSS named color "khaki", an exact match. In RGB it breaks down to red 240, green 230, and blue 140 out of 255 each. In HSL terms that's a hue of 54°, 77% saturation, and 75% lightness: on the lighter side — readable as large or bold text on a dark background, but too pale for small body text on white.
Every format
| HEX | #f0e68c |
| RGB | rgb(240, 230, 140) |
| HSL | hsl(54° 77% 75%) |
| HSB | hsb(54° 42% 94%) |
| OKLCH | oklch(91% 0.112 103°) |
| OKLAB | oklab(91% -0.025 0.109) |
| LCH | lch(91% 45.3 97°) |
| CMYK | cmyk(0% 4% 42% 6%) |
Shades (darker)
#f0e68c · #d8ce75 · #c1b65d · #aa9f45 · #93892c
Tints (lighter)
#f0e68c · #f3e98f · #f6ec92 · #f9ef94 · #fcf297
Shades mix #F0E68C toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 1.28:1 — fails
On black: 16.40:1 — AAA
Frequently asked
- What is #F0E68C in RGB?
- #F0E68C is rgb(240, 230, 140) — red 240, green 230, blue 140 out of 255 each.
- Does #F0E68C pass WCAG contrast on a white background?
- It has a contrast ratio of 1.28:1 against white, which fails for normal text.
- What's a good background color to pair with #F0E68C?
- Black text or a black background gives better contrast (16.40:1) than white (1.28:1).