CSS Named Color
Copy-ready color values
HEX
#F0E68CRGB
rgb(240, 230, 140)HSL
hsl(54, 77%, 75%)HSV
hsv(54, 42%, 94%)CMYK approx.
cmyk(0, 4, 42, 6)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #F0E68C | |
| RGB | rgb(240, 230, 140) | |
| HSL | hsl(54, 77%, 75%) | |
| HSV | hsv(54, 42%, 94%) | |
| CMYK approx. | cmyk(0, 4, 42, 6) | |
| CSS keyword | khaki |
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#495095Analogous
#EFE698#F0DB97Triadic
#E68CF0#8CF0E6Split complementary
#3A428C#0C155EUsing 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"