#D8BC4F#D8BC4F

#D8BC4F is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.9% C 0.131 H 94.8°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#D8BC4F
RGBrgb(216, 188, 79)
HSLhsl(48, 64%, 58%)
HSVhsv(48, 63%, 85%)
CMYKcmyk(0%, 13%, 63.4%, 15.3%)
CIE-LABlab(76.76, -2.44, 57.21)
CIE-LCHlch(76.76, 57.26, 92.44°)
OKLaboklab(79.89% -0.011 0.1305)
OKLCHoklch(79.89% 0.131 94.8)
XYZxyz(47.7156, 51.1323, 14.7518)
Luminance0.5113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BC4F #4F6BD8
analogous
#D8774F #D8BC4F #B0D84F
triadic
#D8BC4F #4FD8BC #BC4FD8
tetradic
#D8BC4F #4FD877 #4F6BD8 #D84FB0
square
#D8BC4F #4FD877 #4F6BD8 #D84FB0
split-complementary
#D8BC4F #4FB0D8 #774FD8
monochromatic
#8D771F #BFA12A #D8BC4F #E3CF81 #EEE2B3

Accessibility & contrast

On white

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

On black

11.23
#D8BC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BC4F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BC4F#FFFFFF#000000##000000
##D8BC4F1.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB843
Deuteranopia (green-blind)
#D5C154
Tritanopia (blue-blind)
#E8AEA5
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d8bc4f;
/* rgb */ color: rgb(216, 188, 79);
/* oklch */ color: oklch(79.9% 0.131 94.8);
Tailwind
colors: {
  custom: {
    50: '#e7cf85',
    500: '#d8bc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d8bc4f;
$custom-light: #e7cf85;
$custom-dark: #000000;
JSON
{
  "hex": "#d8bc4f",
  "rgb": {
    "r": 216,
    "g": 188,
    "b": 79
  },
  "hsl": {
    "h": 47.737,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.79887,
    "c": 0.13099,
    "h": 94.8
  },
  "luminance": 0.5113
}

Semantic roles & 50–950 ramp

primary
#D8BC4F
secondary
#384B93
accent
#63E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16130B
muted
#85837E

Preview Lab

Preview with #D8BC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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