#D9C552#D9C552

#D9C552 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.9% C 0.136 H 99.5°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#D9C552
RGBrgb(217, 197, 82)
HSLhsl(51, 64%, 59%)
HSVhsv(51, 62%, 85%)
CMYKcmyk(0%, 9.2%, 62.2%, 14.9%)
CIE-LABlab(79.21, -6.48, 58.58)
CIE-LCHlch(79.21, 58.94, 96.31°)
OKLaboklab(81.86% -0.0223 0.1339)
OKLCHoklch(81.86% 0.136 99.5)
XYZxyz(50.1066, 55.2956, 16.0148)
Luminance0.5529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C552 #5266D9
analogous
#D98152 #D9C552 #A9D952
triadic
#D9C552 #52D9C5 #C552D9
tetradic
#D9C552 #52D981 #5266D9 #D952A9
square
#D9C552 #52D981 #5266D9 #D952A9
split-complementary
#D9C552 #52A9D9 #8152D9
monochromatic
#918020 #C3AC2B #D9C552 #E4D684 #EFE7B6

Accessibility & contrast

On white

1.74
#D9C552 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#D9C552 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C552
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C552#FFFFFF#000000##000000
##D9C5521.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E9B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c552;
/* rgb */ color: rgb(217, 197, 82);
/* oklch */ color: oklch(81.9% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#e8d687',
    500: '#d9c552',
    950: '#000000',
  },
}
SCSS
$custom: #d9c552;
$custom-light: #e8d687;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c552",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 82
  },
  "hsl": {
    "h": 51.111,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.81858,
    "c": 0.1357,
    "h": 99.5
  },
  "luminance": 0.55293
}

Semantic roles & 50–950 ramp

primary
#D9C552
secondary
#394796
accent
#59E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C552

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

Preview Lab → · Contrast checker → · Palette generator →

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