#D4D939#D4D939

#D4D939 is a very light, vivid yellow. Relative luminance 0.639; OKLCH L 85.5% C 0.172 H 111.4°. Best body text is #000000 at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#D4D939
RGBrgb(212, 217, 57)
HSLhsl(62, 68%, 54%)
HSVhsv(62, 74%, 85%)
CMYKcmyk(2.3%, 0%, 73.7%, 14.9%)
CIE-LABlab(83.92, -19.93, 72.72)
CIE-LCHlch(83.92, 75.40, 105.32°)
OKLaboklab(85.46% -0.0625 0.1598)
OKLCHoklch(85.46% 0.172 111.4)
XYZxyz(52.7046, 63.9195, 13.4315)
Luminance0.6392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D939 #3E39D9
analogous
#D98E39 #D4D939 #84D939
triadic
#D4D939 #39D4D9 #D939D4
tetradic
#D4D939 #39D98E #3E39D9 #D93984
square
#D4D939 #39D98E #3E39D9 #D93984
split-complementary
#D4D939 #3984D9 #8E39D9
monochromatic
#7C7F18 #AEB322 #D4D939 #DFE36C #EAEDA0

Accessibility & contrast

On white

1.52
#D4D939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.78
#D4D939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D939
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D939#FFFFFF#000000##000000
##D4D9391.001.5213.7813.78
#FFFFFF1.521.0021.0021.00
#00000013.7821.001.001.00
##00000013.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF14
Deuteranopia (green-blind)
#EBD346
Tritanopia (blue-blind)
#E3CBBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d4d939;
/* rgb */ color: rgb(212, 217, 57);
/* oklch */ color: oklch(85.5% 0.172 111.4);
Tailwind
colors: {
  custom: {
    50: '#e5e47b',
    500: '#d4d939',
    950: '#000000',
  },
}
SCSS
$custom: #d4d939;
$custom-light: #e5e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d939",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 57
  },
  "hsl": {
    "h": 61.875,
    "s": 67.797,
    "l": 53.725
  },
  "oklch": {
    "l": 0.85458,
    "c": 0.17162,
    "h": 111.4
  },
  "luminance": 0.63918
}

Semantic roles & 50–950 ramp

primary
#D4D939
secondary
#333086
accent
#3DEB43
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150A
muted
#85847D

Preview Lab

Preview with #D4D939

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

Preview Lab → · Contrast checker → · Palette generator →

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