#D8B64F#D8B64F

#D8B64F is a light, vivid yellow. Relative luminance 0.486; OKLCH L 78.7% C 0.127 H 90.9°. Best body text is #000000 at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#D8B64F
RGBrgb(216, 182, 79)
HSLhsl(45, 64%, 58%)
HSVhsv(45, 63%, 85%)
CMYKcmyk(0%, 15.7%, 63.4%, 15.3%)
CIE-LABlab(75.22, 0.70, 55.53)
CIE-LCHlch(75.22, 55.53, 89.28°)
OKLaboklab(78.67% -0.0019 0.127)
OKLCHoklch(78.67% 0.127 90.9)
XYZxyz(46.4604, 48.6219, 14.3334)
Luminance0.4862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B64F #4F71D8
analogous
#D8714F #D8B64F #B6D84F
triadic
#D8B64F #4FD8B6 #B64FD8
tetradic
#D8B64F #4FD871 #4F71D8 #D84FB6
square
#D8B64F #4FD871 #4F71D8 #D84FB6
split-complementary
#D8B64F #4FB6D8 #714FD8
monochromatic
#8D721F #BF9A2A #D8B64F #E3CB81 #EEE0B3

Accessibility & contrast

On white

1.96
#D8B64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.72
#D8B64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B64F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B64F#FFFFFF#000000##000000
##D8B64F1.001.9610.7210.72
#FFFFFF1.961.0021.0021.00
#00000010.7221.001.001.00
##00000010.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B444
Deuteranopia (green-blind)
#D1BD54
Tritanopia (blue-blind)
#E9A8A0
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d8b64f;
/* rgb */ color: rgb(216, 182, 79);
/* oklch */ color: oklch(78.7% 0.127 90.9);
Tailwind
colors: {
  custom: {
    50: '#e7cb84',
    500: '#d8b64f',
    950: '#000000',
  },
}
SCSS
$custom: #d8b64f;
$custom-light: #e7cb84;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b64f",
  "rgb": {
    "r": 216,
    "g": 182,
    "b": 79
  },
  "hsl": {
    "h": 45.109,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.78668,
    "c": 0.12697,
    "h": 90.9
  },
  "luminance": 0.48619
}

Semantic roles & 50–950 ramp

primary
#D8B64F
secondary
#A6B4DD
accent
#6AE741
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D8B64F

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

Preview Lab → · Contrast checker → · Palette generator →

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