#D8CD51#D8CD51

#D8CD51 is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.4% C 0.144 H 104.2°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#D8CD51
RGBrgb(216, 205, 81)
HSLhsl(55, 63%, 58%)
HSVhsv(55, 63%, 85%)
CMYKcmyk(0%, 5.1%, 62.5%, 15.3%)
CIE-LABlab(81.21, -11.04, 61.15)
CIE-LCHlch(81.21, 62.13, 100.23°)
OKLaboklab(83.43% -0.0353 0.1392)
OKLCHoklch(83.43% 0.144 104.2)
XYZxyz(51.6373, 58.8575, 16.4236)
Luminance0.5886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD51 #515CD8
analogous
#D88951 #D8CD51 #9FD851
triadic
#D8CD51 #51D8CD #CD51D8
tetradic
#D8CD51 #51D889 #515CD8 #D8519F
square
#D8CD51 #51D889 #515CD8 #D8519F
split-complementary
#D8CD51 #519FD8 #8951D8
monochromatic
#8F8620 #C1B42B #D8CD51 #E3DB83 #EEEAB5

Accessibility & contrast

On white

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

On black

12.77
#D8CD51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD51
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD51#FFFFFF#000000##000000
##D8CD511.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8cd51;
/* rgb */ color: rgb(216, 205, 81);
/* oklch */ color: oklch(83.4% 0.144 104.2);
Tailwind
colors: {
  custom: {
    50: '#e7dc87',
    500: '#d8cd51',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd51;
$custom-light: #e7dc87;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd51",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 55.111,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.83425,
    "c": 0.14359,
    "h": 104.2
  },
  "luminance": 0.58856
}

Semantic roles & 50–950 ramp

primary
#D8CD51
secondary
#394094
accent
#4FE641
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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