#D8CF51#D8CF51

#D8CF51 is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 83.8% C 0.145 H 105.2°. Best body text is #000000 at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#D8CF51
RGBrgb(216, 207, 81)
HSLhsl(56, 63%, 58%)
HSVhsv(56, 63%, 85%)
CMYKcmyk(0%, 4.2%, 62.5%, 15.3%)
CIE-LABlab(81.74, -12.05, 61.71)
CIE-LCHlch(81.74, 62.87, 101.05°)
OKLaboklab(83.84% -0.0382 0.1404)
OKLCHoklch(83.84% 0.145 105.2)
XYZxyz(52.1188, 59.8205, 16.5841)
Luminance0.5982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF51 #515AD8
analogous
#D88B51 #D8CF51 #9DD851
triadic
#D8CF51 #51D8CF #CF51D8
tetradic
#D8CF51 #51D88B #515AD8 #D8519D
square
#D8CF51 #51D88B #515AD8 #D8519D
split-complementary
#D8CF51 #519DD8 #8B51D8
monochromatic
#8F8720 #C1B72B #D8CF51 #E3DD83 #EEEBB5

Accessibility & contrast

On white

1.62
#D8CF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.96
#D8CF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF51
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF51#FFFFFF#000000##000000
##D8CF511.001.6212.9612.96
#FFFFFF1.621.0021.0021.00
#00000012.9621.001.001.00
##00000012.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C842
Deuteranopia (green-blind)
#E3CE58
Tritanopia (blue-blind)
#E7C2B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf51;
/* rgb */ color: rgb(216, 207, 81);
/* oklch */ color: oklch(83.8% 0.145 105.2);
Tailwind
colors: {
  custom: {
    50: '#e7dd87',
    500: '#d8cf51',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf51;
$custom-light: #e7dd87;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf51",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 81
  },
  "hsl": {
    "h": 56,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.83844,
    "c": 0.14548,
    "h": 105.2
  },
  "luminance": 0.59819
}

Semantic roles & 50–950 ramp

primary
#D8CF51
secondary
#393F94
accent
#4CE641
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF51

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

Preview Lab → · Contrast checker → · Palette generator →

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