CSS named color
Khaki Color Code
Khaki is a light, vivid yellow with the hex code #F0E68C. In RGB it is rgb(240, 230, 140), in HSL hsl(54, 77%, 75%) and in CMYK cmyk(0%, 4%, 42%, 6%).
Color values
In CSS you can write it as the keyword khaki.
White text on Khaki has a contrast ratio of 1.28:1 and black text 16.40:1, so black text is the more readable choice.
The closest Tailwind CSS color is Amber 200 (#FDE68A).
Use Khaki in CSS
.element {
color: khaki;
background-color: #f0e68c;
border-color: rgb(240, 230, 140);
} Tints and shades of Khaki
Ten steps from light to dark at the same hue. Click any swatch to copy it.
Colors that go with Khaki
Color-wheel harmonies built from #F0E68C. Click a swatch to copy it or open the set in the color wheel.
Split complementary
Open in color wheelA base plus the two neighbors of its complement — contrast with less tension.
Text contrast on Khaki
Colors similar to Khaki
Closest CSS named colors
Closest traditional Chinese colors
Closest Tailwind colors
Palettes with similar colors
Questions about Khaki
What is the hex code for Khaki?
The hex code for Khaki is #F0E68C. Its RGB value is rgb(240, 230, 140) and its HSL value is hsl(54, 77%, 75%).
What colors go with Khaki?
The complementary color of Khaki is #8E98F0. For a softer scheme try the analogous colors #F0B58E and #C9F08E; for a balanced three-color scheme use the triadic colors #8EF0E7 and #E78EF0.
Is Khaki readable as a text color?
On a white background Khaki has a contrast ratio of 1.28:1, which does not pass WCAG AA for normal text (4.5:1). On black it reaches 16.40:1.