#D9C542#D9C542

#D9C542 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.7% C 0.147 H 100.4°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D9C542
RGBrgb(217, 197, 66)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 70%, 85%)
CMYKcmyk(0%, 9.2%, 69.6%, 14.9%)
CIE-LABlab(79.09, -7.40, 65.02)
CIE-LCHlch(79.09, 65.44, 96.49°)
OKLaboklab(81.72% -0.0267 0.145)
OKLCHoklch(81.72% 0.147 100.4)
XYZxyz(49.5671, 55.0798, 13.1738)
Luminance0.5508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C542 #4256D9
analogous
#D97942 #D9C542 #A1D942
triadic
#D9C542 #42D9C5 #C542D9
tetradic
#D9C542 #42D979 #4256D9 #D942A1
square
#D9C542 #42D979 #4256D9 #D942A1
split-complementary
#D9C542 #42A1D9 #7942D9
monochromatic
#86781B #B9A525 #D9C542 #E3D575 #EDE4A8

Accessibility & contrast

On white

1.75
#D9C542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#D9C542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C542
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C542#FFFFFF#000000##000000
##D9C5421.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DDC74A
Tritanopia (blue-blind)
#E9B7AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c542;
/* rgb */ color: rgb(217, 197, 66);
/* oklch */ color: oklch(81.7% 0.147 100.4);
Tailwind
colors: {
  custom: {
    50: '#e8d67e',
    500: '#d9c542',
    950: '#000000',
  },
}
SCSS
$custom: #d9c542;
$custom-light: #e8d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c542",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 52.053,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.8172,
    "c": 0.1474,
    "h": 100.4
  },
  "luminance": 0.55078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D9C542

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

Preview Lab → · Contrast checker → · Palette generator →

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