#D9C442#D9C442

#D9C442 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.5% C 0.147 H 99.9°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#D9C442
RGBrgb(217, 196, 66)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 70%, 85%)
CMYKcmyk(0%, 9.7%, 69.6%, 14.9%)
CIE-LABlab(78.83, -6.89, 64.76)
CIE-LCHlch(78.83, 65.13, 96.07°)
OKLaboklab(81.51% -0.0252 0.1444)
OKLCHoklch(81.51% 0.147 99.9)
XYZxyz(49.3408, 54.6272, 13.0983)
Luminance0.5463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C442 #4257D9
analogous
#D97942 #D9C442 #A2D942
triadic
#D9C442 #42D9C4 #C442D9
tetradic
#D9C442 #42D979 #4257D9 #D942A2
square
#D9C442 #42D979 #4257D9 #D942A2
split-complementary
#D9C442 #42A2D9 #7942D9
monochromatic
#86771B #B9A425 #D9C442 #E3D475 #EDE4A8

Accessibility & contrast

On white

1.76
#D9C442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#D9C442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C442
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C442#FFFFFF#000000##000000
##D9C4421.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF2F
Deuteranopia (green-blind)
#DCC74A
Tritanopia (blue-blind)
#EAB6AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d9c442;
/* rgb */ color: rgb(217, 196, 66);
/* oklch */ color: oklch(81.5% 0.147 99.9);
Tailwind
colors: {
  custom: {
    50: '#e8d57e',
    500: '#d9c442',
    950: '#000000',
  },
}
SCSS
$custom: #d9c442;
$custom-light: #e8d57e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c442",
  "rgb": {
    "r": 217,
    "g": 196,
    "b": 66
  },
  "hsl": {
    "h": 51.656,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81513,
    "c": 0.1466,
    "h": 99.9
  },
  "luminance": 0.54625
}

Semantic roles & 50–950 ramp

primary
#D9C442
secondary
#333F8C
accent
#56E93E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C442

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

Preview Lab → · Contrast checker → · Palette generator →

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