#D8BC52#D8BC52

#D8BC52 is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.9% C 0.129 H 94.5°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#D8BC52
RGBrgb(216, 188, 82)
HSLhsl(47, 63%, 58%)
HSVhsv(47, 62%, 85%)
CMYKcmyk(0%, 13%, 62%, 15.3%)
CIE-LABlab(76.79, -2.25, 55.91)
CIE-LCHlch(76.79, 55.95, 92.30°)
OKLaboklab(79.92% -0.0101 0.1282)
OKLCHoklch(79.92% 0.129 94.5)
XYZxyz(47.8273, 51.1770, 15.3399)
Luminance0.5118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BC52 #526ED8
analogous
#D87952 #D8BC52 #B1D852
triadic
#D8BC52 #52D8BC #BC52D8
tetradic
#D8BC52 #52D879 #526ED8 #D852B1
square
#D8BC52 #52D879 #526ED8 #D852B1
split-complementary
#D8BC52 #52B1D8 #7952D8
monochromatic
#8F7820 #C1A22C #D8BC52 #E3CF84 #EFE3B6

Accessibility & contrast

On white

1.87
#D8BC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#D8BC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BC52
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BC52#FFFFFF#000000##000000
##D8BC521.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB946
Deuteranopia (green-blind)
#D5C157
Tritanopia (blue-blind)
#E8AFA5
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d8bc52;
/* rgb */ color: rgb(216, 188, 82);
/* oklch */ color: oklch(79.9% 0.129 94.5);
Tailwind
colors: {
  custom: {
    50: '#e7cf87',
    500: '#d8bc52',
    950: '#000000',
  },
}
SCSS
$custom: #d8bc52;
$custom-light: #e7cf87;
$custom-dark: #000000;
JSON
{
  "hex": "#d8bc52",
  "rgb": {
    "r": 216,
    "g": 188,
    "b": 82
  },
  "hsl": {
    "h": 47.463,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.79917,
    "c": 0.12859,
    "h": 94.5
  },
  "luminance": 0.51175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8BC52

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

Preview Lab → · Contrast checker → · Palette generator →

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