#D4D540#D4D540

#D4D540 is a very light, vivid yellow. Relative luminance 0.620; OKLCH L 84.6% C 0.164 H 109.8°. Best body text is #000000 at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#D4D540
RGBrgb(212, 213, 64)
HSLhsl(60, 64%, 54%)
HSVhsv(60, 70%, 84%)
CMYKcmyk(0.5%, 0%, 70%, 16.5%)
CIE-LABlab(82.89, -17.65, 69.37)
CIE-LCHlch(82.89, 71.58, 104.27°)
OKLaboklab(84.64% -0.0555 0.154)
OKLCHoklch(84.64% 0.164 109.8)
XYZxyz(51.8728, 61.9572, 14.0759)
Luminance0.6196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D540 #4140D5
analogous
#D58C40 #D4D540 #89D540
triadic
#D4D540 #40D4D5 #D540D4
tetradic
#D4D540 #40D58C #4140D5 #D54089
square
#D4D540 #40D58C #4140D5 #D54089
split-complementary
#D4D540 #4089D5 #8C40D5
monochromatic
#7E7F1C #B0B127 #D4D540 #DFE072 #EBEBA4

Accessibility & contrast

On white

1.57
#D4D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.39
#D4D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D540
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D540#FFFFFF#000000##000000
##D4D5401.001.5713.3913.39
#FFFFFF1.571.0021.0021.00
#00000013.3921.001.001.00
##00000013.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E7D14B
Tritanopia (blue-blind)
#E3C8B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d4d540;
/* rgb */ color: rgb(212, 213, 64);
/* oklch */ color: oklch(84.6% 0.164 109.8);
Tailwind
colors: {
  custom: {
    50: '#e5e17e',
    500: '#d4d540',
    950: '#000000',
  },
}
SCSS
$custom: #d4d540;
$custom-light: #e5e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d540",
  "rgb": {
    "r": 212,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 60.403,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84644,
    "c": 0.16367,
    "h": 109.8
  },
  "luminance": 0.61956
}

Semantic roles & 50–950 ramp

primary
#D4D540
secondary
#343386
accent
#41E742
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D4D540

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

Preview Lab → · Contrast checker → · Palette generator →

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