Skip to content

Khaki (#F0E68C)

The hex code for Khaki is #F0E68C. It is rgb(240, 230, 140) in RGB, hsl(54, 77%, 75%) in HSL, and about cmyk(0%, 4%, 42%, 6%) in CMYK — a light yellow. Black text is the more readable choice on this background.

#F0E68C
HEX#F0E68C
RGBrgb(240, 230, 140)
HSLhsl(54, 77%, 75%)
HSVhsv(54, 42%, 94%)
CMYKcmyk(0%, 4%, 42%, 6%)
OKLCHoklch(91.3% 0.112 102.8)
LABlab(90.64% -5.60 45.00)
LCHlch(90.64% 45.34 97.09)

Colors Closest to Khaki

Khaki is a registered color name, also listed as Khaki (X11) (Light Khaki). These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every yellow in the library.

#F0E68C Channel Values

How Khaki breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 240 · G 230 · B 1408-bit channels as sent to the display
HSLH 54° · S 77% · L 75%Easiest model for building lighter and darker variants
HSVH 54° · S 42% · V 94%Matches the picker in most design tools
CMYKC 0% · M 4% · Y 42% · K 6%Approximate ink mix; confirm with an ICC profile before printing
Luminance1.28:1 vs white · 16.4:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Khaki background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

Fails AAWhite text1.28:1AA normal AA large AAA normal
TextBlack text16.4:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #F0E68C in the contrast checker.

Colors That Go With Khaki

Pairings derived from color-wheel relationships. The complementary color sits opposite Khaki; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Khaki

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #F0E68C.

How Khaki Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#F0E68C
Protanopia#E8E88C
Protanomaly#EBE78C
Deuteranopia#E9E98B
Deuteranomaly#ECE88C
Tritanopia#F8DDDD
Tritanomaly#F5E1C2
Achromatopsia#E3E3E3

Test a full palette in the color blindness simulator.

Using #F0E68C in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--khaki: #F0E68C;
CSS backgroundbackground-color: #F0E68C;
Tailwind configcolors: { 'khaki': '#F0E68C' }
SwiftUIColor(red: 0.941, green: 0.902, blue: 0.549)
Android XML<color name="khaki">#F0E68C</color>
SVG fillfill="#F0E68C"

More Yellow Colors

Khaki sits in the yellow family. These are its neighbours across that family's full range, each with its own breakdown.

#F0E68C Frequently Asked Questions

What is the hex code for Khaki?

The hex code for Khaki is #F0E68C. That is rgb(240, 230, 140) in RGB, hsl(54, 77%, 75%) in HSL, and approximately cmyk(0%, 4%, 42%, 6%) in CMYK.

What is the RGB value of #F0E68C?

#F0E68C is rgb(240, 230, 140) — red 240, green 230, and blue 140 on the 0-255 scale.

What is the CMYK value of #F0E68C?

#F0E68C converts to approximately cmyk(0%, 4%, 42%, 6%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #F0E68C be black or white?

Black text is the more readable choice. #F0E68C scores 1.28:1 against white and 16.4:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Is Khaki a CSS named color?

Yes. Khaki is one of the CSS named colors, so you can write color: khaki instead of the hex code.

Open Khaki in a Tool

Keep exploring: every yellow in the color library, the guide to shades of yellow, or the full color library.