#D8B74F#D8B74F

#D8B74F is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.9% C 0.128 H 91.6°. Best body text is #000000 at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#D8B74F
RGBrgb(216, 183, 79)
HSLhsl(46, 64%, 58%)
HSVhsv(46, 63%, 85%)
CMYKcmyk(0%, 15.3%, 63.4%, 15.3%)
CIE-LABlab(75.47, 0.17, 55.81)
CIE-LCHlch(75.47, 55.81, 89.82°)
OKLaboklab(78.87% -0.0035 0.1276)
OKLCHoklch(78.87% 0.128 91.6)
XYZxyz(46.6659, 49.0330, 14.4019)
Luminance0.4903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B74F #4F70D8
analogous
#D8724F #D8B74F #B5D84F
triadic
#D8B74F #4FD8B7 #B74FD8
tetradic
#D8B74F #4FD872 #4F70D8 #D84FB5
square
#D8B74F #4FD872 #4F70D8 #D84FB5
split-complementary
#D8B74F #4FB5D8 #724FD8
monochromatic
#8D731F #BF9C2A #D8B74F #E3CB81 #EEE0B3

Accessibility & contrast

On white

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

On black

10.81
#D8B74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B74F
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B74F#FFFFFF#000000##000000
##D8B74F1.001.9410.8110.81
#FFFFFF1.941.0021.0021.00
#00000010.8121.001.001.00
##00000010.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B443
Deuteranopia (green-blind)
#D2BE54
Tritanopia (blue-blind)
#E9A9A1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d8b74f;
/* rgb */ color: rgb(216, 183, 79);
/* oklch */ color: oklch(78.9% 0.128 91.6);
Tailwind
colors: {
  custom: {
    50: '#e7cc84',
    500: '#d8b74f',
    950: '#000000',
  },
}
SCSS
$custom: #d8b74f;
$custom-light: #e7cc84;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b74f",
  "rgb": {
    "r": 216,
    "g": 183,
    "b": 79
  },
  "hsl": {
    "h": 45.547,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.7887,
    "c": 0.12761,
    "h": 91.6
  },
  "luminance": 0.4903
}

Semantic roles & 50–950 ramp

primary
#D8B74F
secondary
#A6B3DD
accent
#69E741
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D8B74F

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

Preview Lab → · Contrast checker → · Palette generator →

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