#D8C74B#D8C74B

#D8C74B is a very light, vivid yellow. Relative luminance 0.560; OKLCH L 82.1% C 0.143 H 101.5°. Best body text is #000000 at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#D8C74B
RGBrgb(216, 199, 75)
HSLhsl(53, 64%, 57%)
HSVhsv(53, 65%, 85%)
CMYKcmyk(0%, 7.9%, 65.3%, 15.3%)
CIE-LABlab(79.59, -8.35, 61.93)
CIE-LCHlch(79.59, 62.49, 97.68°)
OKLaboklab(82.12% -0.0284 0.1399)
OKLCHoklch(82.12% 0.143 101.5)
XYZxyz(50.0144, 55.9559, 14.8213)
Luminance0.5595 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C74B #4B5CD8
analogous
#D8814B #D8C74B #A3D84B
triadic
#D8C74B #4BD8C7 #C74BD8
tetradic
#D8C74B #4BD881 #4B5CD8 #D84BA3
square
#D8C74B #4BD881 #4B5CD8 #D84BA3
split-complementary
#D8C74B #4BA3D8 #814BD8
monochromatic
#8B7D1E #BDAB29 #D8C74B #E3D77D #EEE6B0

Accessibility & contrast

On white

1.72
#D8C74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.19
#D8C74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C74B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C74B#FFFFFF#000000##000000
##D8C74B1.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C13B
Deuteranopia (green-blind)
#DEC852
Tritanopia (blue-blind)
#E8BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d8c74b;
/* rgb */ color: rgb(216, 199, 75);
/* oklch */ color: oklch(82.1% 0.143 101.5);
Tailwind
colors: {
  custom: {
    50: '#e7d783',
    500: '#d8c74b',
    950: '#000000',
  },
}
SCSS
$custom: #d8c74b;
$custom-light: #e7d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c74b",
  "rgb": {
    "r": 216,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 52.766,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82119,
    "c": 0.14278,
    "h": 101.5
  },
  "luminance": 0.55954
}

Semantic roles & 50–950 ramp

primary
#D8C74B
secondary
#374290
accent
#55E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C74B

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

Preview Lab → · Contrast checker → · Palette generator →

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