#F0E68C color (khaki)

#F0E68C is rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL. It is exactly the CSS color khaki. Use black text on it (contrast 16.40:1).

#F0E68Ckhaki
HEX#F0E68C
RGBrgb(240, 230, 140)
RGB percentrgb(94.1%, 90.2%, 54.9%)
HSLhsl(54, 77%, 75%)
HSV / HSBhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)
CIELAB (D65)lab(90.3 -9 45)

Edit in the color converter → · Check contrast → · Shades →

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.

Color conversions

HEX#F0E68C
RGBrgb(240, 230, 140)
RGB percentrgb(94.1%, 90.2%, 54.9%)
HSLhsl(54, 77%, 75%)
HSV / HSBhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)
CIELAB (D65)lab(90.3 -9 45)
Decimal15787660
Binary11110000 11100110 10001100

HEX F0 E6 8C → 240, 230, 140 (each pair is a base-16 number: F×16 + 0 = 240)

Color harmonies

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 #F0E68CRatioAA normalAA largeAAA normalAAA large
White text1.28:1FailFailFailFail
Black text16.40:1PassPassPassPass
White text on #F0E68C
Black text on #F0E68C
#F0E68C text on white
#F0E68C text on black

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

NameHEXΔE 2000
khaki#f0e68c0
palegoldenrod#eee8aa5.2
lemonchiffon#fffacd10.1
moccasin#ffe4b510.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; }

Frequently asked questions

What color is #F0E68C?
A pale saturated yellow in the yellow family. Closest CSS name: khaki.
What is #F0E68C in RGB?
rgb(240, 230, 140): red 240, green 230, blue 140.
What is the complementary color of #F0E68C?
#8C96F0, found by rotating the hue 180°.