Khaki Color (#F0E68C)

#F0E68Crgb(240, 230, 140)

Khaki is a CSS named color defined as hex code #F0E68C. CSS khaki is a soft, pale yellow with moderate saturation. It is lighter and yellower than the tan-olive color of khaki clothing.

Color Overview & Formats

CSS: khakiLuminance: 0.7701
HEX
#F0E68C
RGB
rgb(240, 230, 140)
HSL
hsl(54, 77%, 75%)
Khaki (#F0E68C) Color Format Conversions
FormatSyntax / ValuesNotesAction
HEX#F0E68C6-digit hex web code
RGBrgb(240, 230, 140)Red, Green, Blue channels (0-255)
HSLhsl(54, 77%, 75%)Hue (54°), Saturation (77%), Lightness (75%)
HSV / HSBhsv(54, 42%, 94%)Hue, Saturation (42%), Value/Brightness (94%)
CMYKcmyk(0%, 4%, 42%, 6%)Digital mathematical approximation (non-print)
OKLCHoklch(0.913 0.112 102.8)Perceptually uniform color space (CSS Color 4 approximation)
CSS Implementation & Quick Steps
background-color: #F0E68C; /* or khaki */
  1. Select color format: Choose the desired format (HEX #F0E68C, RGB, or HSL).
  2. Copy the code: Click the copy button or press Tab+Enter to store in clipboard.
  3. Pair with black text: Black text on Khaki reaches 16.4:1 (WCAG AAA).

What Colors Go With Khaki?

These 6 colors all go well with Khaki (#F0E68C), and each one is a standard CSS named color. The ratio is the WCAG 2.2 contrast of that color on Khaki: at 4.5:1 or above it works for text; below that, use it for backgrounds and accents.

Black

#000000
16.4:1Text-safe

Sharp, readable text on khaki.

6.97:1Text-safe

A dark neutral for body text.

Navy

#000080
12.5:1Text-safe

A deep blue for strong, readable text.

5.54:1Text-safe

A warm brown for earthy, outdoor palettes.

Dark Olive Green

#556B2F
4.65:1Text-safe

A tonal green for safari and outdoor themes.

Forest Green

#228B22
3.43:1Background / accent

A natural green accent for garden and eco palettes.

Harmonious Palettes & Tints

The palettes below are algorithmically generated across standard intervals based on Khaki (HSL 54°). Each group offers full palette copy and live preview:

Complementary Harmony

Hue rotated 180 degrees on the HSL wheel (54° to 234°), keeping the original saturation and lightness.

Khaki
#F0E68C
Complement (234°)
#8C96F0
Live UI Component Mockup
Component Header SampleBlack text on Khaki: 16.4:1 (WCAG AAA).
Button style preview

Analogous Harmony

Hues 30 degrees either side (24° and 84°), keeping the original saturation and lightness.

Analogous (24°)
#F0B48C
Khaki
#F0E68C
Analogous (84°)
#C8F08C
Live UI Component Mockup
Component Header SampleBlack text on Khaki: 16.4:1 (WCAG AAA).
Button style preview

Triadic Harmony

Hues spaced evenly by 120 degrees (174° and 294°), keeping the original saturation and lightness.

Khaki
#F0E68C
Triadic (174°)
#8CF0E6
Triadic (294°)
#E68CF0
Live UI Component Mockup
Component Header SampleBlack text on Khaki: 16.4:1 (WCAG AAA).
Button style preview

Tints & Shades

Mixed with white (tints) and black (shades) in sRGB at 60% and 30%.

Tint 60%
#F9F5D1
Tint 30%
#F5EEAF
Khaki
#F0E68C
Shade 30%
#A8A162
Shade 60%
#605C38
Live UI Component Mockup
Component Header SampleBlack text on Khaki: 16.4:1 (WCAG AAA).
Button style preview

WCAG 2.2 Text Readability & Contrast Check

Under WCAG 2.2 criteria, regular body text requires at least 4.5:1 (AA) and large text requires at least 3.0:1. The table below displays calculated contrast ratios:

Text Contrast Ratios on Khaki (#F0E68C)
Foreground ColorContrast RatioNormal Text (AA)Large Text (AA)Normal Text AAA (>= 7.0:1)
Pure Black (#000000)
16.40:1PassPassPass
Pure White (#FFFFFF)
1.28:1FailFailFail
Dark Charcoal (#212529)
12.05:1PassPassPass
Mid Gray (#666666)
4.48:1FailPassFail

Interactive Contrast Tester

Enter text foreground and background colors to verify WCAG legibility:

Calculated Ratio:
16.40:1
Normal: Pass AAALarge: Pass AAA
Large Heading Sample (18pt Bold)

This is sample body text rendered directly to verify contrast and readability.

Khaki Background Download

Download standard 1920x1080 solid desktop wallpaper or generate mobile wallpaper:

Khaki 1920x1080 solid color background wallpaper previewStandard Wallpaper: 1920x1080 PNG (#F0E68C)

Download Options

All wallpaper files precisely match the W3C standard color value:

Download 1920x1080 PNG

CSS Standard & Usage Notes

khaki = #f0e68c (rgb(240, 230, 140))
W3C CSS Color 4

UI Design & Accessibility Guidelines

Use it for backgrounds, tags, outdoor and vintage themes, and gentle highlights. On Khaki, black text passes WCAG AAA at every size (16.4:1); white text fails even for large text (1.28:1).

Published: · Modified: · Editorial: SwatchAtlas Editorial Team

Frequently Asked Questions (FAQ)

Can I use black text on Khaki?

Yes. Black text on Khaki has a WCAG 2.2 contrast ratio of 16.4:1, passing both AA (4.5:1) and AAA (7:1) at every text size.

Can I use white text on Khaki?

No. White text on Khaki has a WCAG 2.2 contrast ratio of only 1.28:1, below the 3:1 minimum even for large text.

What colors go with Khaki?

Black, Dark Slate Gray, Navy, Saddle Brown, Dark Olive Green and Forest Green all go well with Khaki. Black (16.4:1), Dark Slate Gray (6.97:1), Navy (12.5:1), Saddle Brown (5.54:1) and Dark Olive Green (4.65:1) have enough contrast for text on Khaki; Forest Green works better as a background or accent.

Is khaki yellow or brown?

The CSS color khaki (#F0E68C) is a pale yellow, lighter than the tan-olive khaki of clothing. Dark Khaki (#BDB76B) is closer to the fabric color.