#D8C04A#D8C04A

#D8C04A is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.7% C 0.138 H 97.7°. Best body text is #000000 at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#D8C04A
RGBrgb(216, 192, 74)
HSLhsl(50, 65%, 57%)
HSVhsv(50, 66%, 85%)
CMYKcmyk(0%, 11.1%, 65.7%, 15.3%)
CIE-LABlab(77.75, -4.82, 60.42)
CIE-LCHlch(77.75, 60.61, 94.56°)
OKLaboklab(80.66% -0.0184 0.1366)
OKLCHoklch(80.66% 0.138 97.7)
XYZxyz(48.4068, 52.7949, 14.1179)
Luminance0.5279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C04A #4A62D8
analogous
#D8794A #D8C04A #A9D84A
triadic
#D8C04A #4AD8C0 #C04AD8
tetradic
#D8C04A #4AD879 #4A62D8 #D84AA9
square
#D8C04A #4AD879 #4A62D8 #D84AA9
split-complementary
#D8C04A #4AA9D8 #794AD8
monochromatic
#8A781E #BCA329 #D8C04A #E3D27C #EEE3AF

Accessibility & contrast

On white

1.82
#D8C04A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.56
#D8C04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C04A
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C04A#FFFFFF#000000##000000
##D8C04A1.001.8211.5611.56
#FFFFFF1.821.0021.0021.00
#00000011.5621.001.001.00
##00000011.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB3B
Deuteranopia (green-blind)
#D9C450
Tritanopia (blue-blind)
#E8B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c04a;
/* rgb */ color: rgb(216, 192, 74);
/* oklch */ color: oklch(80.7% 0.138 97.7);
Tailwind
colors: {
  custom: {
    50: '#e7d282',
    500: '#d8c04a',
    950: '#000000',
  },
}
SCSS
$custom: #d8c04a;
$custom-light: #e7d282;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c04a",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 49.859,
    "s": 64.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80661,
    "c": 0.13781,
    "h": 97.7
  },
  "luminance": 0.52793
}

Semantic roles & 50–950 ramp

primary
#D8C04A
secondary
#364590
accent
#5DE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C04A

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

Preview Lab → · Contrast checker → · Palette generator →

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