#D4D940#D4D940

#D4D940 is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 85.5% C 0.168 H 111.3°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#D4D940
RGBrgb(212, 217, 64)
HSLhsl(62, 67%, 55%)
HSVhsv(62, 71%, 85%)
CMYKcmyk(2.3%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.96, -19.61, 70.42)
CIE-LCHlch(83.96, 73.10, 105.56°)
OKLaboklab(85.5% -0.061 0.1562)
OKLCHoklch(85.5% 0.168 111.3)
XYZxyz(52.8914, 63.9943, 14.4154)
Luminance0.6399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D940 #4540D9
analogous
#D99240 #D4D940 #87D940
triadic
#D4D940 #40D4D9 #D940D4
tetradic
#D4D940 #40D992 #4540D9 #D94087
square
#D4D940 #40D992 #4540D9 #D94087
split-complementary
#D4D940 #4087D9 #9240D9
monochromatic
#81841A #B3B724 #D4D940 #DFE373 #EBEDA6

Accessibility & contrast

On white

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

On black

13.80
#D4D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D940
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D940#FFFFFF#000000##000000
##D4D9401.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF24
Deuteranopia (green-blind)
#EBD34C
Tritanopia (blue-blind)
#E2CCBB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d4d940;
/* rgb */ color: rgb(212, 217, 64);
/* oklch */ color: oklch(85.5% 0.168 111.3);
Tailwind
colors: {
  custom: {
    50: '#e5e47f',
    500: '#d4d940',
    950: '#000000',
  },
}
SCSS
$custom: #d4d940;
$custom-light: #e5e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d940",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 61.961,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.85501,
    "c": 0.16766,
    "h": 111.3
  },
  "luminance": 0.63993
}

Semantic roles & 50–950 ramp

primary
#D4D940
secondary
#35328B
accent
#3EEA44
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4D940

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

Preview Lab → · Contrast checker → · Palette generator →

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