Khaki Color
HEX #F0E68C · rgb(240, 230, 140) · hsl(54, 77%, 75%)
Khaki color codes
Khaki is one of the named colors every browser understands. In CSS you can write it as khaki or #F0E68C.
| Format | Value | |
|---|---|---|
| HEX | #F0E68C | |
| RGB | rgb(240, 230, 140) | |
| HSL | hsl(54, 77%, 75%) | |
| CMYK | 0%, 4%, 42%, 6% | |
| CSS name | khaki |
.example {
color: khaki;
background-color: #F0E68C;
border-color: rgb(240, 230, 140);
}
Colors that go with khaki
These harmonies keep the same saturation and lightness and rotate the hue around the color wheel.
Tints and shades of khaki
Tints mix the color with white; shades mix it with black.
Khaki
Contrast and readability
16.40:1
passes AA and AAA
1.28:1
fails
Use black text on khaki. Ratios follow the WCAG 2 formula; AA needs 4.5:1 for normal text and 3:1 for large text.
Frequently asked questions
What is the hex code for khaki?
The hex code for khaki is #F0E68C.
What is the RGB value of khaki?
Khaki is rgb(240, 230, 140): 240 red, 230 green and 140 blue on a 0 to 255 scale.
What color goes with khaki?
Its complementary color is #8C96F0, which is closest to the named color cornflower blue. Analogous and triadic matches are listed on this page.
Should text on khaki be black or white?
Use black text. The contrast ratio is 16.40:1 with black and 1.28:1 with white. WCAG AA asks for at least 4.5:1 for normal text.
Similar named colors
Pick any other color with the color picker, or browse all named colors.