#D9C152#D9C152

#D9C152 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.132 H 97.1°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D9C152
RGBrgb(217, 193, 82)
HSLhsl(49, 64%, 59%)
HSVhsv(49, 62%, 85%)
CMYKcmyk(0%, 11.1%, 62.2%, 14.9%)
CIE-LABlab(78.17, -4.42, 57.45)
CIE-LCHlch(78.17, 57.62, 94.40°)
OKLaboklab(81.03% -0.0164 0.1315)
OKLCHoklch(81.03% 0.132 97.1)
XYZxyz(49.2103, 53.5031, 15.7161)
Luminance0.5350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C152 #526AD9
analogous
#D97D52 #D9C152 #ADD952
triadic
#D9C152 #52D9C1 #C152D9
tetradic
#D9C152 #52D97D #526AD9 #D952AD
square
#D9C152 #52D97D #526AD9 #D952AD
split-complementary
#D9C152 #52ADD9 #7D52D9
monochromatic
#917D20 #C3A82B #D9C152 #E4D384 #EFE5B6

Accessibility & contrast

On white

1.79
#D9C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#D9C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C152
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C152#FFFFFF#000000##000000
##D9C1521.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD46
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#E9B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c152;
/* rgb */ color: rgb(217, 193, 82);
/* oklch */ color: oklch(81.0% 0.132 97.1);
Tailwind
colors: {
  custom: {
    50: '#e8d387',
    500: '#d9c152',
    950: '#000000',
  },
}
SCSS
$custom: #d9c152;
$custom-light: #e8d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c152",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 49.333,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.81034,
    "c": 0.13247,
    "h": 97.1
  },
  "luminance": 0.53501
}

Semantic roles & 50–950 ramp

primary
#D9C152
secondary
#394A96
accent
#5EE741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C152

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

Preview Lab → · Contrast checker → · Palette generator →

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