Named color

Khaki

Khaki color #F0E68C: RGB 240, 230, 140 and HSL 54°, 77%, 75%. Explore its warm yellow profile, contrast, CSS, palettes and harmonies.

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

Use this color

Create with Khaki

Open a professional color tool with #F0E68C already applied. Each configuration stays canonical to the tool and can be adjusted or shared.

All color tools

CSS Utilities

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

Color meaning and use

About Khaki Color

Khaki uses HEX #F0E68C, RGB 240, 230, 140, and HSL 54°, 77%, 75%. The dataset classifies it in the yellow family with warm temperature and pastel visual character.

No separate named-color neighbor is recorded for this entry. Its relative luminance is 0.7701; black contrast is 16.4:1 and white contrast is 1.28:1, making black the stronger of those two standard foreground choices.

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

Downloadable color reference infographic

Khaki Color Reference Infographic

Save a high-resolution infographic of Khaki, including its color values, coordinated palette, and black and white text contrast.

1200 × 800
Khaki color reference infographic showing #F0E68C, RGB and HSL values, a coordinated palette, and black and white text contrast.
Khaki color reference infographic generated from the verified Colors Encyclopedia dataset.

Color Harmonies

Variants

Pairings

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",
    "/tools/css-gradient-generator",
    "/tools/color-palette-generator",
    "/tools/css-color-mixer",
    "/tools/contrast-checker"
  ],
  "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",
      "/tools/css-gradient-generator",
      "/tools/color-palette-generator",
      "/tools/css-color-mixer",
      "/tools/contrast-checker"
    ]
  }
}
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",
    "/tools/css-gradient-generator",
    "/tools/color-palette-generator",
    "/tools/css-color-mixer",
    "/tools/contrast-checker"
  ],
  "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",
      "/tools/css-gradient-generator",
      "/tools/color-palette-generator",
      "/tools/css-color-mixer",
      "/tools/contrast-checker"
    ]
  },
  "pairings": {
    "best": [
      "#000000",
      "#8E98F0",
      "#F0B58E",
      "#C9F08E"
    ],
    "avoid": [
      "#E2DB9C",
      "#FBF8DF"
    ],
    "neutral": [
      "#1A1A1A",
      "#F5F5F5",
      "#E8E8E4"
    ],
    "highContrast": [
      "#000000"
    ],
    "lowContrast": [
      "#FBF8DF",
      "#E2DB9C"
    ]
  }
}