#D9CC40#D9CC40

#D9CC40 is a very light, vivid yellow. Relative luminance 0.583; OKLCH L 83.2% C 0.155 H 103.9°. Best body text is #000000 at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#D9CC40
RGBrgb(217, 204, 64)
HSLhsl(55, 67%, 55%)
HSVhsv(55, 71%, 85%)
CMYKcmyk(0%, 6%, 70.5%, 14.9%)
CIE-LABlab(80.91, -11.06, 67.58)
CIE-LCHlch(80.91, 68.48, 99.29°)
OKLaboklab(83.17% -0.0372 0.15)
OKLCHoklch(83.17% 0.155 103.9)
XYZxyz(51.1357, 58.3097, 13.4108)
Luminance0.5831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC40 #404DD9
analogous
#D98040 #D9CC40 #99D940
triadic
#D9CC40 #40D9CC #CC40D9
tetradic
#D9CC40 #40D980 #404DD9 #D94099
square
#D9CC40 #40D980 #404DD9 #D94099
split-complementary
#D9CC40 #4099D9 #8040D9
monochromatic
#847B1A #B7AB24 #D9CC40 #E3DA73 #EDE7A6

Accessibility & contrast

On white

1.66
#D9CC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.66
#D9CC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CC40
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CC40#FFFFFF#000000##000000
##D9CC401.001.6612.6612.66
#FFFFFF1.661.0021.0021.00
#00000012.6621.001.001.00
##00000012.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC529
Deuteranopia (green-blind)
#E2CC49
Tritanopia (blue-blind)
#E9BEB0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc40;
/* rgb */ color: rgb(217, 204, 64);
/* oklch */ color: oklch(83.2% 0.155 103.9);
Tailwind
colors: {
  custom: {
    50: '#e8db7e',
    500: '#d9cc40',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc40;
$custom-light: #e8db7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc40",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 54.902,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.83165,
    "c": 0.15457,
    "h": 103.9
  },
  "luminance": 0.58308
}

Semantic roles & 50–950 ramp

primary
#D9CC40
secondary
#323A8B
accent
#4DEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9CC40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D9CC40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva