#D8D04C#D8D04C

#D8D04C is a very light, vivid yellow. Relative luminance 0.602; OKLCH L 84.0% C 0.150 H 105.9°. Best body text is #000000 at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#D8D04C
RGBrgb(216, 208, 76)
HSLhsl(57, 64%, 57%)
HSVhsv(57, 65%, 85%)
CMYKcmyk(0%, 3.7%, 64.8%, 15.3%)
CIE-LABlab(81.97, -12.85, 64.00)
CIE-LCHlch(81.97, 65.28, 101.35°)
OKLaboklab(84.01% -0.041 0.1445)
OKLCHoklch(84.01% 0.15 105.9)
XYZxyz(52.1812, 60.2343, 15.7138)
Luminance0.6023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D04C #4C54D8
analogous
#D88A4C #D8D04C #9AD84C
triadic
#D8D04C #4CD8D0 #D04CD8
tetradic
#D8D04C #4CD88A #4C54D8 #D84C9A
square
#D8D04C #4CD88A #4C54D8 #D84C9A
split-complementary
#D8D04C #4C9AD8 #8A4CD8
monochromatic
#8B851E #BEB529 #D8D04C #E3DD7E #EEEAB1

Accessibility & contrast

On white

1.61
#D8D04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.05
#D8D04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D04C
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D04C#FFFFFF#000000##000000
##D8D04C1.001.6113.0513.05
#FFFFFF1.611.0021.0021.00
#00000013.0521.001.001.00
##00000013.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C93A
Deuteranopia (green-blind)
#E4CE54
Tritanopia (blue-blind)
#E7C3B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d8d04c;
/* rgb */ color: rgb(216, 208, 76);
/* oklch */ color: oklch(84.0% 0.150 105.9);
Tailwind
colors: {
  custom: {
    50: '#e7de85',
    500: '#d8d04c',
    950: '#000000',
  },
}
SCSS
$custom: #d8d04c;
$custom-light: #e7de85;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d04c",
  "rgb": {
    "r": 216,
    "g": 208,
    "b": 76
  },
  "hsl": {
    "h": 56.571,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.84011,
    "c": 0.15017,
    "h": 105.9
  },
  "luminance": 0.60232
}

Semantic roles & 50–950 ramp

primary
#D8D04C
secondary
#373C91
accent
#4AE741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D04C

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

Preview Lab → · Contrast checker → · Palette generator →

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