#D9CD42#D9CD42

#D9CD42 is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.4% C 0.154 H 104.3°. Best body text is #000000 at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#D9CD42
RGBrgb(217, 205, 66)
HSLhsl(55, 67%, 55%)
HSVhsv(55, 70%, 85%)
CMYKcmyk(0%, 5.5%, 69.6%, 14.9%)
CIE-LABlab(81.19, -11.46, 67.11)
CIE-LCHlch(81.19, 68.08, 99.69°)
OKLaboklab(83.39% -0.0382 0.1494)
OKLCHoklch(83.39% 0.154 104.3)
XYZxyz(51.4321, 58.8097, 13.7954)
Luminance0.5881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CD42 #424ED9
analogous
#D98142 #D9CD42 #99D942
triadic
#D9CD42 #42D9CD #CD42D9
tetradic
#D9CD42 #42D981 #424ED9 #D94299
square
#D9CD42 #42D981 #424ED9 #D94299
split-complementary
#D9CD42 #4299D9 #8142D9
monochromatic
#867D1B #B9AD25 #D9CD42 #E3DA75 #EDE8A8

Accessibility & contrast

On white

1.65
#D9CD42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.76
#D9CD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CD42
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CD42#FFFFFF#000000##000000
##D9CD421.001.6512.7612.76
#FFFFFF1.651.0021.0021.00
#00000012.7621.001.001.00
##00000012.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC62C
Deuteranopia (green-blind)
#E3CD4B
Tritanopia (blue-blind)
#E9BFB1
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d9cd42;
/* rgb */ color: rgb(217, 205, 66);
/* oklch */ color: oklch(83.4% 0.154 104.3);
Tailwind
colors: {
  custom: {
    50: '#e8db7f',
    500: '#d9cd42',
    950: '#000000',
  },
}
SCSS
$custom: #d9cd42;
$custom-light: #e8db7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cd42",
  "rgb": {
    "r": 217,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 55.232,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.83389,
    "c": 0.15418,
    "h": 104.3
  },
  "luminance": 0.58808
}

Semantic roles & 50–950 ramp

primary
#D9CD42
secondary
#333A8C
accent
#4CE93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D9CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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