#D8B74E#D8B74E

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

Color values

HEX#D8B74E
RGBrgb(216, 183, 78)
HSLhsl(46, 64%, 58%)
HSVhsv(46, 64%, 85%)
CMYKcmyk(0%, 15.3%, 63.9%, 15.3%)
CIE-LABlab(75.46, 0.11, 56.24)
CIE-LCHlch(75.46, 56.24, 89.89°)
OKLaboklab(78.86% -0.0038 0.1283)
OKLCHoklch(78.86% 0.128 91.7)
XYZxyz(46.6298, 49.0185, 14.2117)
Luminance0.4902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8B74E #4E6FD8
analogous
#D8724E #D8B74E #B4D84E
triadic
#D8B74E #4ED8B7 #B74ED8
tetradic
#D8B74E #4ED872 #4E6FD8 #D84EB4
square
#D8B74E #4ED872 #4E6FD8 #D84EB4
split-complementary
#D8B74E #4EB4D8 #724ED8
monochromatic
#8D721F #BF9B2A #D8B74E #E3CB80 #EEE0B2

Accessibility & contrast

On white

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

On black

10.80
#D8B74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8B74E
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8B74E#FFFFFF#000000##000000
##D8B74E1.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB442
Deuteranopia (green-blind)
#D2BE53
Tritanopia (blue-blind)
#E9A9A0
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d8b74e;
/* rgb */ color: rgb(216, 183, 78);
/* oklch */ color: oklch(78.9% 0.128 91.7);
Tailwind
colors: {
  custom: {
    50: '#e7cc84',
    500: '#d8b74e',
    950: '#000000',
  },
}
SCSS
$custom: #d8b74e;
$custom-light: #e7cc84;
$custom-dark: #000000;
JSON
{
  "hex": "#d8b74e",
  "rgb": {
    "r": 216,
    "g": 183,
    "b": 78
  },
  "hsl": {
    "h": 45.652,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.7886,
    "c": 0.1284,
    "h": 91.7
  },
  "luminance": 0.49016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8B74E

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

Preview Lab → · Contrast checker → · Palette generator →

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