#D8B545#D8B545

#D8B545 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.4% C 0.134 H 91.4°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#D8B545
RGBrgb(216, 181, 69)
HSLhsl(46, 65%, 56%)
HSVhsv(46, 68%, 85%)
CMYKcmyk(0%, 16.2%, 68.1%, 15.3%)
CIE-LABlab(74.87, 0.63, 59.50)
CIE-LCHlch(74.87, 59.51, 89.39°)
OKLaboklab(78.37% -0.0033 0.1338)
OKLCHoklch(78.37% 0.134 91.4)
XYZxyz(45.9194, 48.0790, 12.4906)
Luminance0.4808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B545 #4568D8
analogous
#D86B45 #D8B545 #B1D845
triadic
#D8B545 #45D8B5 #B545D8
tetradic
#D8B545 #45D86B #4568D8 #D845B1
square
#D8B545 #45D86B #4568D8 #D845B1
split-complementary
#D8B545 #45B1D8 #6B45D8
monochromatic
#866D1C #B99627 #D8B545 #E3C978 #EDDDAA

Accessibility & contrast

On white

1.98
#D8B545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#D8B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B545
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B545#FFFFFF#000000##000000
##D8B5451.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B237
Deuteranopia (green-blind)
#D1BD4A
Tritanopia (blue-blind)
#E9A79E
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #d8b545;
/* rgb */ color: rgb(216, 181, 69);
/* oklch */ color: oklch(78.4% 0.134 91.4);
Tailwind
colors: {
  custom: {
    50: '#e8ca7e',
    500: '#d8b545',
    950: '#000000',
  },
}
SCSS
$custom: #d8b545;
$custom-light: #e8ca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b545",
  "rgb": {
    "r": 216,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 45.714,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.78372,
    "c": 0.13387,
    "h": 91.4
  },
  "luminance": 0.48076
}

Semantic roles & 50–950 ramp

primary
#D8B545
secondary
#9EACDB
accent
#68E840
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#17130A
muted
#85827C

Preview Lab

Preview with #D8B545

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

Preview Lab → · Contrast checker → · Palette generator →

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