#D8B951#D8B951

#D8B951 is a light, vivid yellow. Relative luminance 0.499; OKLCH L 79.3% C 0.127 H 92.6°. Best body text is #000000 at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#D8B951
RGBrgb(216, 185, 81)
HSLhsl(46, 63%, 58%)
HSVhsv(46, 63%, 85%)
CMYKcmyk(0%, 14.4%, 62.5%, 15.3%)
CIE-LABlab(76.00, -0.75, 55.50)
CIE-LCHlch(76.00, 55.50, 90.77°)
OKLaboklab(79.3% -0.0059 0.1272)
OKLCHoklch(79.3% 0.127 92.6)
XYZxyz(47.1553, 49.8934, 14.9296)
Luminance0.4989 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B951 #5170D8
analogous
#D87551 #D8B951 #B3D851
triadic
#D8B951 #51D8B9 #B951D8
tetradic
#D8B951 #51D875 #5170D8 #D851B3
square
#D8B951 #51D875 #5170D8 #D851B3
split-complementary
#D8B951 #51B3D8 #7551D8
monochromatic
#8F7520 #C19E2B #D8B951 #E3CD83 #EEE1B5

Accessibility & contrast

On white

1.91
#D8B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.98
#D8B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B951
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B951#FFFFFF#000000##000000
##D8B9511.001.9110.9810.98
#FFFFFF1.911.0021.0021.00
#00000010.9821.001.001.00
##00000010.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#D3BF56
Tritanopia (blue-blind)
#E8ABA2
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d8b951;
/* rgb */ color: rgb(216, 185, 81);
/* oklch */ color: oklch(79.3% 0.127 92.6);
Tailwind
colors: {
  custom: {
    50: '#e7cd86',
    500: '#d8b951',
    950: '#000000',
  },
}
SCSS
$custom: #d8b951;
$custom-light: #e7cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b951",
  "rgb": {
    "r": 216,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 46.222,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.79296,
    "c": 0.12731,
    "h": 92.6
  },
  "luminance": 0.49891
}

Semantic roles & 50–950 ramp

primary
#D8B951
secondary
#A8B4DD
accent
#67E641
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D8B951

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

Preview Lab → · Contrast checker → · Palette generator →

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