Khaki #F0E68C
Khaki is one of the named colours in CSS, written khaki. Black text reaches 16.40:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | khaki |
|---|---|
| HEX | #F0E68C |
| RGB | rgb(240 230 140) |
| HSL | hsl(54 77% 75%) |
| OKLCH | oklch(91.3% 0.112 102.8) |
| White text | 1.28:1 · body text AA Fail |
| Black text | 16.40:1 · body text AA Pass |
Colours that go with Khaki
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Naples Yellow (#FBE6A0), close. These are the colours Wada paired it with, ranked by their contrast with Khaki itself.
| Colour | HEX | Contrast with Khaki | Body text AA |
|---|---|---|---|
| Deep Slate Green | #112F2C | 11.18:1 | Pass |
| Deep Slate Olive | #253122 | 10.64:1 | Pass |
| Eugenia Red | B | #DA525D | 3.07:1 | Fail |
| Light Porcelain Green | #00908A | 3.06:1 | Fail |
| Peach Red | #F15A30 | 2.63:1 | Fail |
| Spinel Red | #F27291 | 2.16:1 | Fail |
| Grenadine Pink | #F48067 | 2.02:1 | Fail |
| Yellow Ocher | #E2B540 | 1.50:1 | Fail |
| Neutral Gray | #B6BFC1 | 1.46:1 | Fail |
Palettes with Naples Yellow
- Combination #14 Spinel Red · Naples Yellow
- Combination #115 Naples Yellow · Peach Red
- Combination #166 Grenadine Pink · Naples Yellow · Deep Slate Green
- Combination #193 Grenadine Pink · Naples Yellow · Light Porcelain Green
- Combination #303 Naples Yellow · Peach Red · Deep Slate Olive · Neutral Gray
- Combination #325 Eugenia Red | B · Naples Yellow · Yellow Ocher · Deep Slate Green
Shades and tints of Khaki
Nine lightness steps in OKLCH that keep the hue of Khaki. Chroma is reduced only where sRGB cannot show it.
- 100#FFF8B7
- 200#F2E88E
- 300#DBD178
- 400#BEB45B
- 500#9F953A
- 600#7E730C
- 700#5F5700
- 800#423C00
- 900#262200
:root {
--khaki-100: #FFF8B7;
--khaki-200: #F2E88E;
--khaki-300: #DBD178;
--khaki-400: #BEB45B;
--khaki-500: #9F953A;
--khaki-600: #7E730C;
--khaki-700: #5F5700;
--khaki-800: #423C00;
--khaki-900: #262200;
}
Text that keeps Khaki on screen
Text #262200 on #F0E68C reaches 12.51:1, which passes WCAG AA for body text. Check it on a dashboard