#D4C04D#D4C04D

#D4C04D is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.135 H 99.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#D4C04D
RGBrgb(212, 192, 77)
HSLhsl(51, 61%, 57%)
HSVhsv(51, 64%, 83%)
CMYKcmyk(0%, 9.4%, 63.7%, 16.9%)
CIE-LABlab(77.42, -6.33, 58.68)
CIE-LCHlch(77.42, 59.02, 96.16°)
OKLaboklab(80.32% -0.0221 0.1335)
OKLCHoklch(80.32% 0.135 99.4)
XYZxyz(47.3426, 52.2342, 14.6082)
Luminance0.5223 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C04D #4D61D4
analogous
#D47D4D #D4C04D #A5D44D
triadic
#D4C04D #4DD4C0 #C04DD4
tetradic
#D4C04D #4DD47D #4D61D4 #D44DA5
square
#D4C04D #4DD47D #4D61D4 #D44DA5
split-complementary
#D4C04D #4DA5D4 #7D4DD4
monochromatic
#867720 #B7A32C #D4C04D #E0D17E #ECE3B0

Accessibility & contrast

On white

1.83
#D4C04D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#D4C04D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C04D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C04D#FFFFFF#000000##000000
##D4C04D1.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3F
Deuteranopia (green-blind)
#D7C253
Tritanopia (blue-blind)
#E4B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c04d;
/* rgb */ color: rgb(212, 192, 77);
/* oklch */ color: oklch(80.3% 0.135 99.4);
Tailwind
colors: {
  custom: {
    50: '#e4d284',
    500: '#d4c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d4c04d;
$custom-light: #e4d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c04d",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 51.111,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.8032,
    "c": 0.1353,
    "h": 99.4
  },
  "luminance": 0.52232
}

Semantic roles & 50–950 ramp

primary
#D4C04D
secondary
#38458D
accent
#5BE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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