Khaki
#F0E68Crgb(240, 230, 140)hsl(54, 77%, 75%)
Khaki is #F0E68C, rgb(240, 230, 140).
In CSS: khaki
Colors that go with Khaki
Complementary
Analogous
Triadic
1 of 2 backgrounds pass AA
- On whiteFail1.28 : 1
- On ink blackPass14.95 : 1
About Khaki
Khaki is the hex color #F0E68C, which translates to rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL. On the color wheel it sits at 54 degrees, with a saturation of 77 percent and a lightness of 75 percent. That combination gives Khaki a saturated mid tone: strong enough for buttons and links, still calm enough for larger areas.
How Khaki compares
Khaki is exactly the CSS keyword khaki, so you can write the keyword instead of the hex and get an identical result. In the Tailwind CSS 4.3.1 palette the nearest token is amber-200 (#FEE685), at a distance of 7.0. Inside this library the closest neighbour is Flax at 4.5. Sorted by lightness, Khaki is number 15 of the 18 yellow colors here.
Text on Khaki
2 of the five common text colors below clear WCAG AA for normal text on Khaki, led by Ink black at 14.95:1. The ratios are computed with the WCAG relative luminance formula, the same one the contrast checker uses, which opens with Khaki already loaded as the background.
| Text color | Ratio | AA normal | AA large | AAA normal |
|---|---|---|---|---|
| White #FFFFFF | 1.28:1 | Fail | Fail | Fail |
| Ink black #0F0F12 | 14.95:1 | Pass | Pass | Pass |
| Mid grey #6B7280 | 3.78:1 | Fail | Pass | Fail |
| Dark grey #374151 | 8.05:1 | Pass | Pass | Pass |
| Light grey #E5E7EB | 1.03:1 | Fail | Fail | Fail |
Building a palette around Khaki
The pairings above give you three classic starting points. The complementary color sits opposite on the wheel and works well as an accent that draws the eye. The analogous colors sit right beside Khaki for calmer, harmonious combinations. The triadic pair spaces three hues evenly for a balanced, energetic palette. Open any swatch to explore it as its own color, or open the palette generator with Khaki locked and let it fill in the rest.
Full values for Khaki
| Format | Value |
|---|---|
| HEX | #F0E68C |
| RGB | rgb(240, 230, 140) |
| HSL | hsl(54, 77%, 75%) |
| HSV | hsv(54, 42%, 94%) |
| CMYK | cmyk(0%, 4%, 42%, 6%) |
| OKLCH | oklch(91.35% 0.1119 102.83) |
| CIELAB | lab(90.33 -9.01 44.98) |
Frequently asked questions
What is the RGB value of Khaki?
Khaki (#F0E68C) is rgb(240, 230, 140): 240 red, 230 green and 140 blue on the 0 to 255 scale. Red leads at 240, green follows at 230 and blue trails at 140, which puts the hue at 54 degrees. In HSL the same color is hsl(54, 77%, 75%).
What colour is #F0E68C?
#F0E68C is Khaki, a light yellow colour with a hue of 54 degrees, 77% saturation and 75% lightness. For print the CMYK breakdown is 0% cyan, 4% magenta, 42% yellow and 6% black. Its nearest neighbour in this library is Flax, 4.5 away in CIELAB, a difference you can see.
Is Khaki a CSS color name?
Yes. The keyword khaki is one of the 148 named colors in CSS Color Module Level 4, so color: khaki; renders exactly #F0E68C.
What colors go with Khaki?
Opposite Khaki on the color wheel sits the complementary #8C96F0, the boldest accent by hue. For a calmer scheme use the analogous neighbours #F0B48C and #C8F08C; for a balanced three-color scheme use the triadic pair #8CF0E6 and #E68CF0. Of these, #8C96F0 has the most contrast against Khaki, at 2.12:1, so pair it by hue, not for legibility.
What text color is readable on Khaki?
Ink black (#0F0F12) is the most readable on Khaki, at 14.95:1, which also clears WCAG AAA (7:1). 2 of the 5 common text colors tested pass AA for normal text.
Use Khaki in a tool
Nearby colors
Last updated by FusionStudios. Every value on this page is computed by the same functions the tools use. How this is calculated.