CSS Named Color

Copy-ready color values

HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
HSVhsv(54, 42%, 94%)
CMYK approx.cmyk(0, 4, 42, 6)

Color value table

FormatValueCopy
HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
HSVhsv(54, 42%, 94%)
CMYK approx.cmyk(0, 4, 42, 6)
CSS keywordkhaki

Contrast and classification

LightLightness1.28:1Contrast with white16.40:1Contrast with blackRed / OrangeColor family

Shade and tint preview

White 10%
#F2E998

White 30%
#F5EEAF

White 70%
#FBF8DD

White 90%
#FEFDF4

Black 10%
#D8CF7E

Black 30%
#A8A162

Black 70%
#48452A

Black 90%
#18170E

Harmony palettes

Complementary

#0F1973
#495095

Analogous

#EFE698
#F0DB97

Triadic

#E68CF0
#8CF0E6

Split complementary

#3A428C
#0C155E

Using Khaki

Khaki works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-khaki: #f0e68c;
}

.button-primary {
  background: var(--color-khaki);
  color: #000000;
}

$khaki: #f0e68c;

// Tailwind arbitrary value
class="bg-[#f0e68c] text-white"