#D8C951#D8C951

#D8C951 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.6% C 0.140 H 102.2°. Best body text is #000000 at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#D8C951
RGBrgb(216, 201, 81)
HSLhsl(53, 63%, 58%)
HSVhsv(53, 63%, 85%)
CMYKcmyk(0%, 6.9%, 62.5%, 15.3%)
CIE-LABlab(80.16, -9.01, 60.02)
CIE-LCHlch(80.16, 60.69, 98.54°)
OKLaboklab(82.59% -0.0296 0.1368)
OKLCHoklch(82.59% 0.14 102.2)
XYZxyz(50.6927, 56.9683, 16.1087)
Luminance0.5697 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C951 #5160D8
analogous
#D88551 #D8C951 #A4D851
triadic
#D8C951 #51D8C9 #C951D8
tetradic
#D8C951 #51D885 #5160D8 #D851A4
square
#D8C951 #51D885 #5160D8 #D851A4
split-complementary
#D8C951 #51A4D8 #8551D8
monochromatic
#8F8220 #C1B02B #D8C951 #E3D983 #EEE8B5

Accessibility & contrast

On white

1.69
#D8C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.39
#D8C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C951
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C951#FFFFFF#000000##000000
##D8C9511.001.6912.3912.39
#FFFFFF1.691.0021.0021.00
#00000012.3921.001.001.00
##00000012.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DFCA58
Tritanopia (blue-blind)
#E7BCB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d8c951;
/* rgb */ color: rgb(216, 201, 81);
/* oklch */ color: oklch(82.6% 0.140 102.2);
Tailwind
colors: {
  custom: {
    50: '#e7d987',
    500: '#d8c951',
    950: '#000000',
  },
}
SCSS
$custom: #d8c951;
$custom-light: #e7d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c951",
  "rgb": {
    "r": 216,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 53.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.82589,
    "c": 0.13994,
    "h": 102.2
  },
  "luminance": 0.56966
}

Semantic roles & 50–950 ramp

primary
#D8C951
secondary
#394394
accent
#54E641
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C951

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

Preview Lab → · Contrast checker → · Palette generator →

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