#D8B752#D8B752

#D8B752 is a light, vivid yellow. Relative luminance 0.491; OKLCH L 78.9% C 0.125 H 91.2°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#D8B752
RGBrgb(216, 183, 82)
HSLhsl(45, 63%, 58%)
HSVhsv(45, 62%, 85%)
CMYKcmyk(0%, 15.3%, 62%, 15.3%)
CIE-LABlab(75.50, 0.37, 54.49)
CIE-LCHlch(75.50, 54.49, 89.61°)
OKLaboklab(78.9% -0.0025 0.1252)
OKLCHoklch(78.9% 0.125 91.2)
XYZxyz(46.7776, 49.0776, 14.9901)
Luminance0.4908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B752 #5273D8
analogous
#D87452 #D8B752 #B6D852
triadic
#D8B752 #52D8B7 #B752D8
tetradic
#D8B752 #52D874 #5273D8 #D852B6
square
#D8B752 #52D874 #5273D8 #D852B6
split-complementary
#D8B752 #52B6D8 #7452D8
monochromatic
#8F7420 #C19C2C #D8B752 #E3CC84 #EFE1B6

Accessibility & contrast

On white

1.94
#D8B752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.82
#D8B752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B752
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B752#FFFFFF#000000##000000
##D8B7521.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B547
Deuteranopia (green-blind)
#D1BE56
Tritanopia (blue-blind)
#E8AAA1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d8b752;
/* rgb */ color: rgb(216, 183, 82);
/* oklch */ color: oklch(78.9% 0.125 91.2);
Tailwind
colors: {
  custom: {
    50: '#e7cc86',
    500: '#d8b752',
    950: '#000000',
  },
}
SCSS
$custom: #d8b752;
$custom-light: #e7cc86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b752",
  "rgb": {
    "r": 216,
    "g": 183,
    "b": 82
  },
  "hsl": {
    "h": 45.224,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.78901,
    "c": 0.12519,
    "h": 91.2
  },
  "luminance": 0.49075
}

Semantic roles & 50–950 ramp

primary
#D8B752
secondary
#A8B5DD
accent
#6AE642
background
#FEFCF8
surface
#FDF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D8B752

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

Preview Lab → · Contrast checker → · Palette generator →

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