#D8BB52#D8BB52

#D8BB52 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.7% C 0.128 H 93.8°. Best body text is #000000 at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#D8BB52
RGBrgb(216, 187, 82)
HSLhsl(47, 63%, 58%)
HSVhsv(47, 62%, 85%)
CMYKcmyk(0%, 13.4%, 62%, 15.3%)
CIE-LABlab(76.53, -1.72, 55.62)
CIE-LCHlch(76.53, 55.65, 91.78°)
OKLaboklab(79.71% -0.0086 0.1276)
OKLCHoklch(79.71% 0.128 93.8)
XYZxyz(47.6144, 50.7512, 15.2690)
Luminance0.5075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BB52 #526FD8
analogous
#D87852 #D8BB52 #B2D852
triadic
#D8BB52 #52D8BB #BB52D8
tetradic
#D8BB52 #52D878 #526FD8 #D852B2
square
#D8BB52 #52D878 #526FD8 #D852B2
split-complementary
#D8BB52 #52B2D8 #7852D8
monochromatic
#8F7720 #C1A12C #D8BB52 #E3CF84 #EFE2B6

Accessibility & contrast

On white

1.88
#D8BB52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.15
#D8BB52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BB52
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BB52#FFFFFF#000000##000000
##D8BB521.001.8811.1511.15
#FFFFFF1.881.0021.0021.00
#00000011.1521.001.001.00
##00000011.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CDB847
Deuteranopia (green-blind)
#D4C157
Tritanopia (blue-blind)
#E8AEA4
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d8bb52;
/* rgb */ color: rgb(216, 187, 82);
/* oklch */ color: oklch(79.7% 0.128 93.8);
Tailwind
colors: {
  custom: {
    50: '#e7cf87',
    500: '#d8bb52',
    950: '#000000',
  },
}
SCSS
$custom: #d8bb52;
$custom-light: #e7cf87;
$custom-dark: #000000;
JSON
{
  "hex": "#d8bb52",
  "rgb": {
    "r": 216,
    "g": 187,
    "b": 82
  },
  "hsl": {
    "h": 47.015,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.79713,
    "c": 0.12788,
    "h": 93.8
  },
  "luminance": 0.50749
}

Semantic roles & 50–950 ramp

primary
#D8BB52
secondary
#394D95
accent
#65E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D8BB52

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

Preview Lab → · Contrast checker → · Palette generator →

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