CSS Named Color Reference

Khaki Color Code

Khaki·#F0E68C

Yellow FamilyWarmMid toneHigh saturationoklch(91.3% 0.112 103)
HEX
#F0E68CPrimary token
RGB
rgb(240, 230, 140)Screen values
HSL
hsl(54 77% 75%)Hue and lightness
CMYK
0, 4, 42, 6Print handoff
LAB
90, -9, 45Perceptual reference
OKLCH
oklch(91.3% 0.112 103)Modern perceptual

Khaki is a mid-tone, high-saturation CSS named color at #F0E68C. If you searched for khaki hex code, F0E68C, or khaki RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast13.40:1
Best UseAttention markers, highlights, warm backgrounds, and caution-adjacent states

Tonal Scale

100#FCFBEA
300#F8F4CA
500#F3EBA1
600#F0E68C
800#ADA665

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

1.28:1Needs more separation

Dark text on this color

Large headings and selective UI.

13.40:1AAA-level contrast

This color on light surface

Links, borders, and icons on light UI.

1.22:1Needs more separation
Best text colorDark textContrast 13.40:1

Professional Reference

OKLCHoklch(91.3% 0.112 103)
Relative Luminance0.7701
Source TypeCSS Named Color
Classification
Yellow FamilyWarmMid toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Material Yellow 200Tailwind Amber 200Ant Design Gold 3
Color Notes
  • Khaki is kept as an exact CSS named color for #F0E68C.
  • Queries for khaki color code, F0E68C, or khaki RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

1.28:1Needs more separation

Dark text on this color

Dark text or headings on the current color.

13.40:1AAA

This color on light surface

Use this color for links, strokes, or icons on light UI.

1.22:1Needs more separation

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

13.40:1AAA
Best text colorDark textContrast 13.40:1 · AAA

Where It Works

  • Use it for highlights, caution-adjacent labels, warm backgrounds, and attention markers.
  • Most yellows need dark text for readable interface copy.
  • Pair with charcoal, deep olive, warm neutrals, and controlled orange accents.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Khaki is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Bright ambers and yellows that carry warmth.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-khaki: #F0E68C;
  --color-khaki-rgb: 240 230 140;
}
Utility Class
class="bg-[#F0E68C] text-white"
class="hover:bg-[#ADA665] ring-1 ring-[#F0E68C]"
JSON Token
{
  "khaki": "#F0E68C",
  "khakiRgb": [240, 230, 140],
  "khakiHsl": [54, 77, 75]
}