#D9CC3F#D9CC3F

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

Color values

HEX#D9CC3F
RGBrgb(217, 204, 63)
HSLhsl(55, 67%, 55%)
HSVhsv(55, 71%, 85%)
CMYKcmyk(0%, 6%, 71%, 14.9%)
CIE-LABlab(80.90, -11.11, 67.94)
CIE-LCHlch(80.90, 68.84, 99.28°)
OKLaboklab(83.16% -0.0375 0.1506)
OKLCHoklch(83.16% 0.155 104)
XYZxyz(51.1075, 58.2984, 13.2623)
Luminance0.5830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC3F #3F4CD9
analogous
#D97F3F #D9CC3F #99D93F
triadic
#D9CC3F #3FD9CC #CC3FD9
tetradic
#D9CC3F #3FD97F #3F4CD9 #D93F99
square
#D9CC3F #3FD97F #3F4CD9 #D93F99
split-complementary
#D9CC3F #3F99D9 #7F3FD9
monochromatic
#847B1A #B7AA24 #D9CC3F #E3DA72 #EDE7A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D9CC3F#FFFFFF#000000##000000
##D9CC3F1.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)
#DEC527
Deuteranopia (green-blind)
#E2CC49
Tritanopia (blue-blind)
#E9BEB0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc3f;
/* rgb */ color: rgb(217, 204, 63);
/* oklch */ color: oklch(83.2% 0.155 104.0);
Tailwind
colors: {
  custom: {
    50: '#e9db7d',
    500: '#d9cc3f',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc3f;
$custom-light: #e9db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc3f",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 63
  },
  "hsl": {
    "h": 54.935,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.83158,
    "c": 0.15518,
    "h": 104
  },
  "luminance": 0.58296
}

Semantic roles & 50–950 ramp

primary
#D9CC3F
secondary
#32398A
accent
#4CEA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9CC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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