#D4D04F#D4D04F

#D4D04F is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.7% C 0.148 H 107.5°. Best body text is #000000 at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#D4D04F
RGBrgb(212, 208, 79)
HSLhsl(58, 61%, 57%)
HSVhsv(58, 63%, 83%)
CMYKcmyk(0%, 1.9%, 62.7%, 16.9%)
CIE-LABlab(81.66, -14.33, 62.36)
CIE-LCHlch(81.66, 63.98, 102.95°)
OKLaboklab(83.7% -0.0447 0.1416)
OKLCHoklch(83.7% 0.148 107.5)
XYZxyz(51.1203, 59.6749, 16.2212)
Luminance0.5967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D04F #4F53D4
analogous
#D48D4F #D4D04F #96D44F
triadic
#D4D04F #4FD4D0 #D04FD4
tetradic
#D4D04F #4FD48D #4F53D4 #D44F96
square
#D4D04F #4FD48D #4F53D4 #D44F96
split-complementary
#D4D04F #4F96D4 #8D4FD4
monochromatic
#878421 #B9B42D #D4D04F #E0DD80 #ECEAB1

Accessibility & contrast

On white

1.62
#D4D04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.93
#D4D04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D04F
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D04F#FFFFFF#000000##000000
##D4D04F1.001.6212.9312.93
#FFFFFF1.621.0021.0021.00
#00000012.9321.001.001.00
##00000012.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C83F
Deuteranopia (green-blind)
#E3CD57
Tritanopia (blue-blind)
#E2C3B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d4d04f;
/* rgb */ color: rgb(212, 208, 79);
/* oklch */ color: oklch(83.7% 0.148 107.5);
Tailwind
colors: {
  custom: {
    50: '#e4de86',
    500: '#d4d04f',
    950: '#000000',
  },
}
SCSS
$custom: #d4d04f;
$custom-light: #e4de86;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d04f",
  "rgb": {
    "r": 212,
    "g": 208,
    "b": 79
  },
  "hsl": {
    "h": 58.195,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83697,
    "c": 0.14843,
    "h": 107.5
  },
  "luminance": 0.59673
}

Semantic roles & 50–950 ramp

primary
#D4D04F
secondary
#393C8E
accent
#49E444
background
#FEFEFC
surface
#FDFCF3
border
#D5D5CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4D04F

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

Preview Lab → · Contrast checker → · Palette generator →

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