#F0E68C

Khaki — Color Codes & Palette

#F0E68C  ·  rgb(240, 230, 140)  ·  hsl(54, 77%, 75%)

Color Codes

Format Value
HEX #F0E68C
RGB rgb(240, 230, 140)
HSL hsl(54, 77%, 75%)

Shades of Khaki

#ECDF6A#E7D746#E2CF22#C2B119#9E9015#7A6F10#564E0B#322D06

Tints of Khaki

#F2E897#F3EAA0#F4ECA9#F5EEB2#F6F0BB#F7F2C4#F9F4CD#FAF6D6

Color Pairings & Harmony

Complementary
#8E98F0
Analogous +30°
#C9F08E
Analogous −30°
#F0B58E
Triadic +120°
#8EF0E7
Triadic −120°
#E78EF0

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
1.28:1 — Fail
vs. Black (#000000)
16.40:1 — AAA pass for normal text

CSS Snippet

.element {
  color: #F0E68C;
}

.element-bg {
  background-color: #F0E68C;
  color: #000000;
}

.element-border {
  border: 2px solid #F0E68C;
}

About Khaki

Khaki is a light color with high saturation, defined by the hex code #F0E68C. Its exact color model values are rgb(240, 230, 140) in RGB and hsl(54, 77%, 75%) in HSL (hue 54°, saturation 77%, lightness 75%). On a white background the contrast ratio is 1.28:1 — Fail, and on black it is 16.40:1 — AAA pass for normal text. Use Khaki for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of Khaki?
The RGB value of Khaki (#F0E68C) is rgb(240, 230, 140). Red = rgb(240, 230, 140), representing the amounts of red, green, and blue light on a 0–255 scale.
Is Khaki accessible on a white background?
The contrast ratio of Khaki on white (#FFFFFF) is 1.28:1 — Fail. On black (#000000) the contrast ratio is 16.40:1 — AAA pass for normal text. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with Khaki?
Based on color theory, Khaki (hsl(54, 77%, 75%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.