#D8B952#D8B952

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

Color values

HEX#D8B952
RGBrgb(216, 185, 82)
HSLhsl(46, 63%, 58%)
HSVhsv(46, 62%, 85%)
CMYKcmyk(0%, 14.4%, 62%, 15.3%)
CIE-LABlab(76.01, -0.68, 55.06)
CIE-LCHlch(76.01, 55.06, 90.71°)
OKLaboklab(79.31% -0.0056 0.1264)
OKLCHoklch(79.31% 0.126 92.5)
XYZxyz(47.1930, 49.9085, 15.1285)
Luminance0.4991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B952 #5271D8
analogous
#D87652 #D8B952 #B4D852
triadic
#D8B952 #52D8B9 #B952D8
tetradic
#D8B952 #52D876 #5271D8 #D852B4
square
#D8B952 #52D876 #5271D8 #D852B4
split-complementary
#D8B952 #52B4D8 #7652D8
monochromatic
#8F7620 #C19F2C #D8B952 #E3CD84 #EFE1B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8B952#FFFFFF#000000##000000
##D8B9521.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)
#CBB647
Deuteranopia (green-blind)
#D3BF57
Tritanopia (blue-blind)
#E8ACA3
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #d8b952;
/* rgb */ color: rgb(216, 185, 82);
/* oklch */ color: oklch(79.3% 0.126 92.5);
Tailwind
colors: {
  custom: {
    50: '#e7cd86',
    500: '#d8b952',
    950: '#000000',
  },
}
SCSS
$custom: #d8b952;
$custom-light: #e7cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b952",
  "rgb": {
    "r": 216,
    "g": 185,
    "b": 82
  },
  "hsl": {
    "h": 46.119,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.79306,
    "c": 0.12649,
    "h": 92.5
  },
  "luminance": 0.49906
}

Semantic roles & 50–950 ramp

primary
#D8B952
secondary
#A8B5DD
accent
#68E642
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D8B952

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

Preview Lab → · Contrast checker → · Palette generator →

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