AfoliOpen Afoli →

Khaki color #F0E68C

Khaki is one of the CSS named colors (keyword khaki) with the hex code #F0E68C — RGB 240, 230, 140, HSL 54°, 77%, 75%.

Open in Afoli Colour tools →

#F0E68CKhaki

Color codes

HEX
#F0E68C
RGB
rgb(240, 230, 140)
HSL
hsl(54, 77%, 75%)
CMYK
0%, 4%, 42%, 6%
OKLCH
oklch(91.3% 0.112 102.8)
CSS keyword
khaki

Tints and shades

#FFF8B4#E8DE84#CDC369#B3A94F#9A8F34#817612#685F00#4F4800#383200#221E00#0E0B00

Color harmonies

Complementary
#F0E68C#DEDFFF
Analogous
#FFDCB0#F0E68C#C6F3A5
Triadic
#F0E68C#B8ECFF#FFD4ED
Split complementary
#F0E68C#CFE5FF#F0D8FF
Tetradic
#F0E68C#7EFAF7#DEDFFF#FFD7DA

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Khaki text on white1.28 : 114Fails for text
Khaki text on black16.40 : 1-90AAA — any text
White text on Khaki1.28 : 1-16Fails for text
Black text on Khaki16.40 : 190AAA — any text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Khaki?

Khaki has the hex code #F0E68C, which is RGB 240, 230, 140 and HSL 54°, 77%, 75%.

Which text color reads best on Khaki?

Black text: contrast 16.40 : 1 (white text: 1.28 : 1).

Which colors go well with Khaki?

Its complementary color is #DEDFFF; analogous colors are #FFDCB0 and #C6F3A5; a triadic set adds #B8ECFF and #FFD4ED.

Similar colors

Sources and licences

Updated November 21, 2026