Skip to main content

Khaki

#F0E68C·yellow family·WCAG AAA

Tints & Shades

50

100

200

300

400

500

600

700

800

900

Scale from white (50) through Khaki (500) to black (900), interpolated in Lab color space.

Color Values

HEX
#F0E68C
RGB
rgb(240, 230, 140)
HSL
hsl(54, 77%, 75%)
OKLCH
oklch(0.913 0.112 103)
CMYK
cmyk(0%, 4%, 42%, 6%)
Luminance:0.7701
CSS var:--color-khaki
Tailwind:bg-[#F0E68C]

Accessibility

Score: 48/100

On White (#FFF)

1.28:1

Fail

On Black (#000)

16.4:1

AAA

On Light Gray (#F5F5F5)

1.17:1

Fail

Best text color on this background:

black16.40:1
Open in Contrast Checker →

Design Applications

Background

background-color: #F0E68C

Text Color

color: #F0E68C

bg-[#F0E68C] text-[#000000]

Accent border card component

border-left: 4px solid #F0E68C

Color Meaning & Psychology

Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. Its lighter value makes it approachable and soft — suitable for backgrounds, secondary UI states, and contexts requiring the hue's character without full intensity.

Industry Usage

Common contexts and industries where Khaki is applied in professional design.

  • Taxi and transportation services
  • Construction and heavy machinery
  • Children's education products and toys
  • Fast food and energy-focused brands
  • Caution and safety signage
  • Summer and outdoor lifestyle brands
  • Optimistic lifestyle and wellness brands
  • Creative agencies emphasizing ideas

Accessibility Considerations

Normal Text

Fails AA

4.5:1 minimum required

Large Text

Fails AA Large

3:1 minimum required

UI Components

Check contrast

3:1 for non-text UI

Khaki is a light color. Use black (#000000) text on top of it for maximum readability (16.40:1). Avoid white text on this background.

CSS & Code Examples

Background

background-color: #F0E68C;

Text

color: #F0E68C;

Border

border: 2px solid #F0E68C;

Box Shadow

box-shadow: 0 4px 20px #F0E68C40;

Gradient

background: linear-gradient(135deg, #F0E68C, #ffffbd);

Tailwind-style

--color-khaki: #F0E68C;

Tailwind CSS Utilities

Use arbitrary value syntax in Tailwind CSS to apply Khaki without a custom config.

Background

bg-[#F0E68C]

Text

text-[#F0E68C]

Border

border-[#F0E68C]

Ring

ring-[#F0E68C]

Fill

fill-[#F0E68C]

From (gradient)

from-[#F0E68C]

Via (gradient)

via-[#F0E68C]

To (gradient)

to-[#F0E68C]

Design Tokens

Ready-to-use Khaki design token in CSS custom properties, SCSS, Tailwind v3/v4, and JSON formats.

CSS Custom Properties

:root {
  --color-khaki: #F0E68C;
  --color-khaki-rgb: 240, 230, 140;
  --color-khaki-hsl: 54, 77%, 75%;
}

SCSS Variables

$color-khaki: #F0E68C;
$color-khaki-rgb: 240, 230, 140;
$color-khaki-hsl: 54, 77%, 75%;

Tailwind v3 Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'khaki': '#F0E68C',
      },
    },
  },
};

Tailwind v4 (@theme)

/* tailwind.css */
@theme {
  --color-khaki: #F0E68C;
}

JSON Design Token (W3C format)

{
  "khaki": {
    "value": "#F0E68C",
    "type": "color",
    "description": "Khaki — #F0E68C"
  }
}

What Does Khaki Mean? Color Psychology & Cultural Symbolism

Yellow's psychological power comes from its dual role: the color of the sun and the color of warning tape. Khaki leans toward the former—its light quality at 75% lightness emphasizing energy over alarm.

  • Across color psychology research, yellow consistently tests high for "optimism" associations, making Khaki a reliable vehicle for energy in cross-demographic audiences.
  • Brand designers draw on yellow-family tones to project approachability and energy—values that Khaki communicates in a light key.
  • At 77% saturation, Khaki reads as moderately saturated—neither overwhelming nor passive, landing in the optimism, clarity, intellect, and caution zone with measured confidence.
  • Khaki's light lightness (75%) shifts its psychological register: Pale yellow and champagne tones feel warm, neutral, and almost white—excellent for backgrounds, subtle warmth in neutral palettes, and understated accents.

Khaki is the color of first impressions—it arrives before everything else and sets the energy level for what follows.

How to Use Khaki in Design: Applications, Pairings & Best Practices

Khaki requires careful deployment in design—its high luminosity makes it nearly impossible to use as text on white backgrounds, but as an accent, background, or highlight it has no equal for drawing the eye.

  • Avoid: body text on white (extremely poor contrast), luxury positioning (gold is the exception), and clinical or medical contexts where precision and calm are paramount.
  • Color harmonies: Khaki's complementary color creates a high-energy split ideal for promotional design; its analogous palette (±30° hue) builds cohesive, monochromatic sophistication.
  • Proportional use: Khaki's moderately saturated saturation (77%) means small applications—accents, highlights, icons—deliver maximum impact without visual fatigue. Reserve large-scale use for intentional brand moments.
  • Khaki creates strong legibility with black text overlays (16.4:1 contrast ratio), making it a reliable background or surface color in design systems
  • Typography: Khaki as text requires a dark background; its 75% lightness means it provides 1.3:1 contrast on white, not meeting WCAG AA.

Khaki is the color of first impressions—it arrives before everything else and sets the energy level for what follows.

Khaki Accessibility: WCAG Contrast Ratios, Color Blindness & Inclusive Design

Khaki (#F0E68C) achieves a 16.40:1 contrast ratio with black text, surpassing the WCAG 2.1 AAA threshold of 7:1. This exceptional contrast qualifies it for body text, UI components at any size, and all accessibility-sensitive interface contexts. Relative luminance: 77.0%.

  • As text on white (#FFFFFF): 1.28:1 — Fail
  • As text on black (#000000): 16.40:1 — AAA ✓
  • Best text color on Khaki background: Black (#000000) at 16.40:1
  • WCAG 2.1 luminance: 77.0% — high-luminance (near-white)—it provides excellent readability for dark text overlays and integrates naturally into light design systems
  • Khaki qualifies for all text sizes including small body copy (AAA).
  • Color blindness consideration: tritanopia (blue-yellow color blindness, ~0.003% of population) may affect how this color reads. While rare, for maximum accessibility supplement color signals with text or icon indicators in critical states.

Always verify Khaki at its final intended size and weight using a real contrast checker—font weight and rendering environment affect perceived legibility beyond what raw ratios capture.

Khaki in Industry: Branding, Design & Market Applications

Across industry research, yellow-family tones consistently outperform competitors in categories built on optimism, clarity, intellect, and caution. Khaki is a light expression of this advantage—best positioned in Food & Beverage and adjacent markets.

  • Food & Beverage: Yellow stimulates appetite and communicates freshness, especially for bakery, dairy, and snack categories. Its association with sunlight and ripe crops makes it an instinctive choice for natural and wholesome food brands. (examples: Whole Foods, Trader Joe's, Blue Bottle Coffee) Extremely effective for children's food products; less effective for premium dining where it reads as casual.
  • Education & Children's Products: Yellow is cognitively stimulating and signals playfulness, making it a dominant choice in educational materials, children's toys, and learning apps. It creates an environment of curiosity and creative energy. (examples: Duolingo, Coursera, Khan Academy) Combine with blue for a classic educational palette that suggests both warmth and reliability.
  • Safety & Construction: Yellow is the universal signal for visibility and caution. High-visibility vests, construction equipment, and warning signage use yellow because it provides maximum contrast in low-light conditions and stands out in natural environments. This safety connotation can be leveraged in UX for warning states and "proceed with awareness" signals.
  • Brand positioning: Khaki is best suited for brands projecting approachability, energy, clarity. Categories outside this positioning—body text on white (extremely poor contrast)—tend to see weaker results.
  • Adjacent applications: Beyond primary industries, Khaki works effectively in caution signage, pricing emphasis, sticky notes/productivity—contexts where clarity serves a secondary but reinforcing role.

Khaki earns its strongest ROI in industries where trust and recognition compound over time: Food & Beverage, Education & Children's Products, Safety & Construction. Use it to build the kind of brand recognition that decades reinforce.

Frequently Asked Questions

What is the hex code for Khaki?
The hex code for Khaki is #F0E68C. Its RGB values are rgb(240, 230, 140) and its HSL values are hsl(54, 77%, 75%).
What does Khaki mean in design?
Yellow is the most luminous color in the visible spectrum — the color our eyes detect first and at the greatest distance. It stimulates mental activity, promotes optimism, and conveys clarity. However, yellow is also the most fatiguing for the human eye at extended exposure, and pure yellow text on white fails all accessibility standards. In design, yellow works best as an accent or background for dark text. Golden yellows signal warmth and achievement; cool lemons feel fresh and modern. Yellow is the universal color of caution — from traffic lights to hazard tape. Its lighter value makes it approachable and soft — suitable for backgrounds, secondary UI states, and contexts requiring the hue's character without full intensity.
Is Khaki WCAG accessible?
Khaki (#F0E68C) does not pass WCAG AA on white (1.28:1 ratio). Use it on dark backgrounds where it achieves 16.4:1. Its overall accessibility score is 48/100.
What colors go well with Khaki?
Khaki pairs well with its complementary color Phthalo Blue (#000F89). Analogous colors like Bister and Wheat also work harmoniously. Check the Color Harmonies section above for the full palette.
What is Khaki used for?
Khaki is commonly used for: Taxi and transportation services; Construction and heavy machinery; Children's education products and toys; Fast food and energy-focused brands; Caution and safety signage.
What are the CSS and Tailwind values for Khaki?
In CSS, use `color: #F0E68C` or `background-color: #F0E68C`. The CSS custom property is `--color-khaki: #F0E68C`. In Tailwind CSS, use the arbitrary value class `bg-[#F0E68C]` for backgrounds or `text-[#F0E68C]` for text.