#D8CC51#D8CC51

#D8CC51 is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 83.2% C 0.143 H 103.7°. Best body text is #000000 at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#D8CC51
RGBrgb(216, 204, 81)
HSLhsl(55, 63%, 58%)
HSVhsv(55, 63%, 85%)
CMYKcmyk(0%, 5.6%, 62.5%, 15.3%)
CIE-LABlab(80.95, -10.53, 60.86)
CIE-LCHlch(80.95, 61.77, 99.82°)
OKLaboklab(83.22% -0.0339 0.1386)
OKLCHoklch(83.22% 0.143 103.7)
XYZxyz(51.3989, 58.3807, 16.3441)
Luminance0.5838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC51 #515DD8
analogous
#D88851 #D8CC51 #A0D851
triadic
#D8CC51 #51D8CC #CC51D8
tetradic
#D8CC51 #51D888 #515DD8 #D851A0
square
#D8CC51 #51D888 #515DD8 #D851A0
split-complementary
#D8CC51 #51A0D8 #8851D8
monochromatic
#8F8520 #C1B32B #D8CC51 #E3DB83 #EEE9B5

Accessibility & contrast

On white

1.66
#D8CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.68
#D8CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC51
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC51#FFFFFF#000000##000000
##D8CC511.001.6612.6812.68
#FFFFFF1.661.0021.0021.00
#00000012.6821.001.001.00
##00000012.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC642
Deuteranopia (green-blind)
#E1CC58
Tritanopia (blue-blind)
#E7BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc51;
/* rgb */ color: rgb(216, 204, 81);
/* oklch */ color: oklch(83.2% 0.143 103.7);
Tailwind
colors: {
  custom: {
    50: '#e7db87',
    500: '#d8cc51',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc51;
$custom-light: #e7db87;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc51",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 54.667,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.83216,
    "c": 0.14267,
    "h": 103.7
  },
  "luminance": 0.58379
}

Semantic roles & 50–950 ramp

primary
#D8CC51
secondary
#394194
accent
#50E641
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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