Named color

Khaki

Khaki is a pastel yellow color with HEX #F0E68C. According to Colors Encyclopedia, it has RGB 240, 230, 140, HSL 54, 77%, 75%, warm temperature, and is useful for web design, CSS color systems, and UI prototyping.

HEX #F0E68C
RGB rgb(240, 230, 140)
HSL hsl(54 77% 75%)
CMYK cmyk(0, 4, 42, 6)
Luminance 0.7701
Contrast Black 16.4:1White 1.28:1

CSS Utilities

--color-khaki: #F0E68C;
.bg-khaki { background-color: #F0E68C; }
.text-khaki { color: #F0E68C; }

Machine-readable data

Machine-Readable Color Data (JSON)

Perfect for CSS, design systems, automation, and AI ingestion.

AI-Ready Dataset v1.0.0
Luminance0.7701
Black text16.4:1AA Pass
White text1.28:1AA Fail
hexCanonical HEX value
rgbRed, green, blue channels
hslHue, saturation, lightness
cmykApproximate print conversion
wcagAA and AAA contrast options
harmoniesMathematical harmony sets
variantsGenerated tone variants
nearestColorsKnowledge graph neighbors
Download JSON Open API
Structured sections
Color systems
{
  "hex": "#F0E68C",
  "rgb": [
    240,
    230,
    140
  ],
  "hsl": [
    54,
    77,
    75
  ],
  "cmyk": [
    0,
    4,
    42,
    6
  ],
  "luminance": 0.7701,
  "contrast": {
    "black": 16.4,
    "white": 1.28
  }
}
WCAG
{
  "AA": [
    "#000000",
    "#1A1A1A",
    "#36454F"
  ],
  "AAA": [
    "#000000",
    "#1A1A1A",
    "#36454F"
  ]
}
Harmonies
{
  "complementary": "#8E98F0",
  "analogous": [
    "#F0B58E",
    "#C9F08E"
  ],
  "triadic": [
    "#8EF0E7",
    "#E78EF0"
  ],
  "tetradic": [
    "#8EF0B5",
    "#8E98F0",
    "#F08EC9"
  ],
  "splitComplementary": [
    "#8EC9F0",
    "#B58EF0"
  ],
  "monochromatic": [
    "#FBF8DF",
    "#F0E68C",
    "#E6D53D"
  ]
}
Variants
{
  "light": "#FBF8DF",
  "dark": "#E6D53D",
  "saturated": "#FEF280",
  "desaturated": "#E2DB9C",
  "pastel": "#FFFFFF",
  "neon": "#FFF6A8"
}
Pairings
{
  "best": [
    "#000000",
    "#8E98F0",
    "#F0B58E",
    "#C9F08E"
  ],
  "avoid": [
    "#E2DB9C",
    "#FBF8DF"
  ],
  "neutral": [
    "#1A1A1A",
    "#F5F5F5",
    "#E8E8E4"
  ],
  "highContrast": [
    "#000000"
  ],
  "lowContrast": [
    "#FBF8DF",
    "#E2DB9C"
  ]
}
Knowledge graph
{
  "nearestColors": [
    "flax",
    "soft-peach",
    "pastel-yellow",
    "pale-goldenrod",
    "vanilla"
  ],
  "generatedPalettes": [
    "khaki"
  ],
  "generatedComparisons": [
    "flax-vs-khaki",
    "khaki-vs-soft-peach",
    "pastel-yellow-vs-khaki"
  ],
  "relatedFamilies": [
    "/colors/by-family/yellow",
    "/colors/by-temperature/warm",
    "/colors/by-tone/pastel"
  ],
  "relatedTools": [
    "/harmonies/khaki",
    "/wcag/khaki",
    "/css/colors/khaki",
    "/hex/f0e68c"
  ],
  "semanticRelations": {
    "broader": [
      "/colors/by-family/yellow",
      "/colors/by-temperature/warm",
      "/colors/by-tone/pastel"
    ],
    "narrower": [
      "/palettes/khaki"
    ],
    "related": [
      "/colors/flax",
      "/colors/soft-peach",
      "/colors/pastel-yellow",
      "/colors/pale-goldenrod",
      "/colors/vanilla",
      "/compare/flax-vs-khaki",
      "/compare/khaki-vs-soft-peach",
      "/compare/pastel-yellow-vs-khaki",
      "/harmonies/khaki",
      "/wcag/khaki",
      "/css/colors/khaki",
      "/hex/f0e68c"
    ]
  }
}
Full JSON dataset
{
  "slug": "khaki",
  "name": "Khaki",
  "cssName": "khaki",
  "hex": "#F0E68C",
  "family": "yellow",
  "temperature": "warm",
  "tone": [
    "pastel"
  ],
  "uses": [
    "web design",
    "CSS color systems",
    "UI prototyping"
  ],
  "psychology": {
    "associations": [
      "context dependent"
    ],
    "contexts": [
      "web interfaces",
      "design systems",
      "technical color references"
    ],
    "avoidIn": [
      "claims that require brand or cultural specificity"
    ]
  },
  "aliases": [
    "khaki"
  ],
  "sourceType": "standard",
  "confidence": "high",
  "sourceUrl": "https://www.w3.org/TR/css-color-4/#named-colors",
  "origin": {
    "type": "css",
    "notes": "Standard CSS named color."
  },
  "reviewStatus": "auto",
  "editorialNotes": "Generated from CSS named color data and computed color-system properties.",
  "tags": [
    "yellow",
    "warm",
    "pastel",
    "web-design",
    "css-color-systems",
    "ui-prototyping",
    "context-dependent"
  ],
  "popularity": 67,
  "rgb": [
    240,
    230,
    140
  ],
  "hsl": [
    54,
    77,
    75
  ],
  "cmyk": [
    0,
    4,
    42,
    6
  ],
  "luminance": 0.7701,
  "contrast": {
    "black": 16.4,
    "white": 1.28
  },
  "harmonies": {
    "complementary": "#8E98F0",
    "analogous": [
      "#F0B58E",
      "#C9F08E"
    ],
    "triadic": [
      "#8EF0E7",
      "#E78EF0"
    ],
    "tetradic": [
      "#8EF0B5",
      "#8E98F0",
      "#F08EC9"
    ],
    "splitComplementary": [
      "#8EC9F0",
      "#B58EF0"
    ],
    "monochromatic": [
      "#FBF8DF",
      "#F0E68C",
      "#E6D53D"
    ]
  },
  "variants": {
    "light": "#FBF8DF",
    "dark": "#E6D53D",
    "saturated": "#FEF280",
    "desaturated": "#E2DB9C",
    "pastel": "#FFFFFF",
    "neon": "#FFF6A8"
  },
  "wcag": {
    "AA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ],
    "AAA": [
      "#000000",
      "#1A1A1A",
      "#36454F"
    ]
  },
  "css": {
    "variable": "--color-khaki: #F0E68C;",
    "utility": ".bg-khaki { background-color: #F0E68C; }",
    "textUtility": ".text-khaki { color: #F0E68C; }"
  },
  "nearestColors": [
    "flax",
    "soft-peach",
    "pastel-yellow",
    "pale-goldenrod",
    "vanilla"
  ],
  "generatedPalettes": [
    "khaki"
  ],
  "generatedComparisons": [
    "flax-vs-khaki",
    "khaki-vs-soft-peach",
    "pastel-yellow-vs-khaki"
  ],
  "relatedFamilies": [
    "/colors/by-family/yellow",
    "/colors/by-temperature/warm",
    "/colors/by-tone/pastel"
  ],
  "relatedTools": [
    "/harmonies/khaki",
    "/wcag/khaki",
    "/css/colors/khaki",
    "/hex/f0e68c"
  ],
  "semanticRelations": {
    "broader": [
      "/colors/by-family/yellow",
      "/colors/by-temperature/warm",
      "/colors/by-tone/pastel"
    ],
    "narrower": [
      "/palettes/khaki"
    ],
    "related": [
      "/colors/flax",
      "/colors/soft-peach",
      "/colors/pastel-yellow",
      "/colors/pale-goldenrod",
      "/colors/vanilla",
      "/compare/flax-vs-khaki",
      "/compare/khaki-vs-soft-peach",
      "/compare/pastel-yellow-vs-khaki",
      "/harmonies/khaki",
      "/wcag/khaki",
      "/css/colors/khaki",
      "/hex/f0e68c"
    ]
  },
  "pairings": {
    "best": [
      "#000000",
      "#8E98F0",
      "#F0B58E",
      "#C9F08E"
    ],
    "avoid": [
      "#E2DB9C",
      "#FBF8DF"
    ],
    "neutral": [
      "#1A1A1A",
      "#F5F5F5",
      "#E8E8E4"
    ],
    "highContrast": [
      "#000000"
    ],
    "lowContrast": [
      "#FBF8DF",
      "#E2DB9C"
    ]
  }
}

Color meaning and use

About Khaki Color

Khaki sits in the yellow family with warm temperature and pastel visual character. Standard CSS named color.

Its common associations include context dependent, which makes it relevant for web interfaces and design systems. In design work, Khaki is most useful for web design, css color systems, and ui prototyping, especially when paired with black text for stronger contrast.

WCAG Accessibility

Contrast checks for Khaki against black and white text.

Black text16.4:1AA Pass
White text1.28:1AA Fail
AA text options#000000, #1A1A1A, #36454F
AAA text options#000000, #1A1A1A, #36454F

Similar Colors

Color Harmonies

#8E98F0#8E98F0
#F0B58E#F0B58E
#C9F08E#C9F08E
#8EF0E7#8EF0E7
#E78EF0#E78EF0

Variants

#FBF8DF#FBF8DF
#E6D53D#E6D53D
#FEF280#FEF280
#E2DB9C#E2DB9C
White#FFFFFF
#FFF6A8#FFF6A8

Pairings

Black#000000
#8E98F0#8E98F0
#F0B58E#F0B58E
#C9F08E#C9F08E
Matte Black#1A1A1A
White Smoke#F5F5F5