About #F0E68C
#F0E68C is a pale, saturated yellow with a hue angle of 54°. It belongs to the yellow family and reads as a warm color. In the RGB model red is the strongest channel at 240 (94%) and blue the weakest at 140 (55%). Colors like this are typically used for illustrations, charts, highlights and secondary buttons.
- It is the CSS named color khaki, so you can write
color: khakiinstead of the hex code.
Color conversions
| HEX | #F0E68C |
|---|---|
| RGB | rgb(240, 230, 140) |
| RGB percent | rgb(94.1%, 90.2%, 54.9%) |
| HSL | hsl(54, 77%, 75%) |
| HSV / HSB | hsv(54, 42%, 94%) |
| CMYK | cmyk(0%, 4%, 42%, 6%) |
| CIELAB (D65) | lab(90.3 -9 45) |
| Decimal | 15787660 |
| Binary | 11110000 11100110 10001100 |
HEX F0 E6 8C → 240, 230, 140 (each pair is a base-16 number: F×16 + 0 = 240)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #F0E68C
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #F0E68C | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 1.28:1 | Fail | Fail | Fail | Fail |
| Black text | 16.40:1 | Pass | Pass | Pass | Pass |
Relative luminance is 0.7701 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#f5e085
Deuteranopia#f8e690
Tritanopia#fddbd0
Achromatopsia#e3e3e3
People with red–green color blindness see this color almost unchanged (ΔE 2.4 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| khaki | #f0e68c | 0 |
| palegoldenrod | #eee8aa | 5.2 |
| lemonchiffon | #fffacd | 10.1 |
| moccasin | #ffe4b5 | 10.6 |
CSS
.element {
color: #f0e68c;
background-color: rgb(240, 230, 140);
border: 1px solid hsl(54, 77%, 75%);
box-shadow: 0 2px 8px rgb(240 230 140 / 50%);
}
:root { --brand: #f0e68c; }