#D9CD51#D9CD51

#D9CD51 is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.5% C 0.144 H 103.8°. Best body text is #000000 at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#D9CD51
RGBrgb(217, 205, 81)
HSLhsl(55, 64%, 58%)
HSVhsv(55, 63%, 85%)
CMYKcmyk(0%, 5.5%, 62.7%, 14.9%)
CIE-LABlab(81.30, -10.62, 61.26)
CIE-LCHlch(81.30, 62.17, 99.83°)
OKLaboklab(83.51% -0.0342 0.1394)
OKLCHoklch(83.51% 0.144 103.8)
XYZxyz(51.9337, 59.0104, 16.4375)
Luminance0.5901 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CD51 #515DD9
analogous
#D98951 #D9CD51 #A1D951
triadic
#D9CD51 #51D9CD #CD51D9
tetradic
#D9CD51 #51D989 #515DD9 #D951A1
square
#D9CD51 #51D989 #515DD9 #D951A1
split-complementary
#D9CD51 #51A1D9 #8951D9
monochromatic
#90861F #C2B52A #D9CD51 #E4DB83 #EFEAB5

Accessibility & contrast

On white

1.64
#D9CD51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.80
#D9CD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CD51
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CD51#FFFFFF#000000##000000
##D9CD511.001.6412.8012.80
#FFFFFF1.641.0021.0021.00
#00000012.8021.001.001.00
##00000012.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC642
Deuteranopia (green-blind)
#E2CD58
Tritanopia (blue-blind)
#E8C0B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d9cd51;
/* rgb */ color: rgb(217, 205, 81);
/* oklch */ color: oklch(83.5% 0.144 103.8);
Tailwind
colors: {
  custom: {
    50: '#e8dc87',
    500: '#d9cd51',
    950: '#000000',
  },
}
SCSS
$custom: #d9cd51;
$custom-light: #e8dc87;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cd51",
  "rgb": {
    "r": 217,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 54.706,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83512,
    "c": 0.14353,
    "h": 103.8
  },
  "luminance": 0.59008
}

Semantic roles & 50–950 ramp

primary
#D9CD51
secondary
#394195
accent
#4FE741
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D9CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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