#D8C442#D8C442

#D8C442 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.4% C 0.147 H 100.4°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#D8C442
RGBrgb(216, 196, 66)
HSLhsl(52, 66%, 55%)
HSVhsv(52, 69%, 85%)
CMYKcmyk(0%, 9.3%, 69.4%, 15.3%)
CIE-LABlab(78.74, -7.31, 64.65)
CIE-LCHlch(78.74, 65.06, 96.45°)
OKLaboklab(81.42% -0.0264 0.1442)
OKLCHoklch(81.42% 0.147 100.4)
XYZxyz(49.0444, 54.4744, 13.0844)
Luminance0.5447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C442 #4256D8
analogous
#D87942 #D8C442 #A1D842
triadic
#D8C442 #42D8C4 #C442D8
tetradic
#D8C442 #42D879 #4256D8 #D842A1
square
#D8C442 #42D879 #4256D8 #D842A1
split-complementary
#D8C442 #42A1D8 #7942D8
monochromatic
#84761B #B7A426 #D8C442 #E2D475 #EDE4A7

Accessibility & contrast

On white

1.77
#D8C442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#D8C442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C442
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C442#FFFFFF#000000##000000
##D8C4421.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF2F
Deuteranopia (green-blind)
#DCC64A
Tritanopia (blue-blind)
#E8B6AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d8c442;
/* rgb */ color: rgb(216, 196, 66);
/* oklch */ color: oklch(81.4% 0.147 100.4);
Tailwind
colors: {
  custom: {
    50: '#e8d57e',
    500: '#d8c442',
    950: '#000000',
  },
}
SCSS
$custom: #d8c442;
$custom-light: #e8d57e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c442",
  "rgb": {
    "r": 216,
    "g": 196,
    "b": 66
  },
  "hsl": {
    "h": 52,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81422,
    "c": 0.14658,
    "h": 100.4
  },
  "luminance": 0.54472
}

Semantic roles & 50–950 ramp

primary
#D8C442
secondary
#333F8B
accent
#56E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C442

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

Preview Lab → · Contrast checker → · Palette generator →

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