#D8BC42#D8BC42

#D8BC42 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.8% C 0.141 H 96.0°. Best body text is #000000 at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#D8BC42
RGBrgb(216, 188, 66)
HSLhsl(49, 66%, 55%)
HSVhsv(49, 69%, 85%)
CMYKcmyk(0%, 13%, 69.4%, 15.3%)
CIE-LABlab(76.66, -3.18, 62.55)
CIE-LCHlch(76.66, 62.63, 92.91°)
OKLaboklab(79.77% -0.0146 0.1398)
OKLCHoklch(79.77% 0.141 96)
XYZxyz(47.2878, 50.9612, 12.4989)
Luminance0.5096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8BC42 #425ED8
analogous
#D87142 #D8BC42 #A9D842
triadic
#D8BC42 #42D8BC #BC42D8
tetradic
#D8BC42 #42D871 #425ED8 #D842A9
square
#D8BC42 #42D871 #425ED8 #D842A9
split-complementary
#D8BC42 #42A9D8 #7142D8
monochromatic
#84711B #B79C26 #D8BC42 #E2CE75 #EDE0A7

Accessibility & contrast

On white

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

On black

11.19
#D8BC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8BC42
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8BC42#FFFFFF#000000##000000
##D8BC421.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB831
Deuteranopia (green-blind)
#D6C149
Tritanopia (blue-blind)
#E9AEA3
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d8bc42;
/* rgb */ color: rgb(216, 188, 66);
/* oklch */ color: oklch(79.8% 0.141 96.0);
Tailwind
colors: {
  custom: {
    50: '#e8cf7d',
    500: '#d8bc42',
    950: '#000000',
  },
}
SCSS
$custom: #d8bc42;
$custom-light: #e8cf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8bc42",
  "rgb": {
    "r": 216,
    "g": 188,
    "b": 66
  },
  "hsl": {
    "h": 48.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.79772,
    "c": 0.14053,
    "h": 96
  },
  "luminance": 0.50959
}

Semantic roles & 50–950 ramp

primary
#D8BC42
secondary
#33448B
accent
#5FE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #D8BC42

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

Preview Lab → · Contrast checker → · Palette generator →

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