#D4D221#D4D221

#D4D221 is a very light, vivid yellow. Relative luminance 0.602; OKLCH L 83.8% C 0.175 H 108.9°. Best body text is #000000 at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#D4D221
RGBrgb(212, 210, 33)
HSLhsl(59, 73%, 48%)
HSVhsv(59, 84%, 83%)
CMYKcmyk(0%, 0.9%, 84.4%, 16.9%)
CIE-LABlab(81.95, -17.29, 77.45)
CIE-LCHlch(81.95, 79.36, 102.58°)
OKLaboklab(83.85% -0.0569 0.1659)
OKLCHoklch(83.85% 0.175 108.9)
XYZxyz(50.4746, 60.2017, 10.3998)
Luminance0.6020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D221 #2123D4
analogous
#D47921 #D4D221 #7CD421
triadic
#D4D221 #21D4D2 #D221D4
tetradic
#D4D221 #21D479 #2123D4 #D4217C
square
#D4D221 #21D479 #2123D4 #D4217C
split-complementary
#D4D221 #217CD4 #7921D4
monochromatic
#6A6911 #9F9E19 #D4D221 #E4E24F #ECEB84

Accessibility & contrast

On white

1.61
#D4D221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.04
#D4D221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D221
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D221#FFFFFF#000000##000000
##D4D2211.001.6113.0413.04
#FFFFFF1.611.0021.0021.00
#00000013.0421.001.001.00
##00000013.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4C900
Deuteranopia (green-blind)
#E6CE34
Tritanopia (blue-blind)
#E4C4B3
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d4d221;
/* rgb */ color: rgb(212, 210, 33);
/* oklch */ color: oklch(83.8% 0.175 108.9);
Tailwind
colors: {
  custom: {
    50: '#e6df71',
    500: '#d4d221',
    950: '#000000',
  },
}
SCSS
$custom: #d4d221;
$custom-light: #e6df71;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d221",
  "rgb": {
    "r": 212,
    "g": 210,
    "b": 33
  },
  "hsl": {
    "h": 59.33,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.83846,
    "c": 0.17535,
    "h": 108.9
  },
  "luminance": 0.602
}

Semantic roles & 50–950 ramp

primary
#D4D221
secondary
#252674
accent
#3AF038
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D4D221

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

Preview Lab → · Contrast checker → · Palette generator →

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