#D1D421#D1D421

#D1D421 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.0% C 0.178 H 110.7°. Best body text is #000000 at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#D1D421
RGBrgb(209, 212, 33)
HSLhsl(61, 73%, 48%)
HSVhsv(61, 84%, 83%)
CMYKcmyk(1.4%, 0%, 84.4%, 16.9%)
CIE-LABlab(82.25, -19.54, 77.60)
CIE-LCHlch(82.25, 80.02, 104.13°)
OKLaboklab(84.03% -0.063 0.1663)
OKLCHoklch(84.03% 0.178 110.7)
XYZxyz(50.1144, 60.7535, 10.5253)
Luminance0.6075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D421 #2421D4
analogous
#D47E21 #D1D421 #77D421
triadic
#D1D421 #21D1D4 #D421D1
tetradic
#D1D421 #21D47E #2421D4 #D42177
square
#D1D421 #21D47E #2421D4 #D42177
split-complementary
#D1D421 #2177D4 #7E21D4
monochromatic
#696A11 #9D9F19 #D1D421 #E1E44F #EAEC84

Accessibility & contrast

On white

1.60
#D1D421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.15
#D1D421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D421
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D421#FFFFFF#000000##000000
##D1D4211.001.6013.1513.15
#FFFFFF1.601.0021.0021.00
#00000013.1521.001.001.00
##00000013.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CA00
Deuteranopia (green-blind)
#E7CF35
Tritanopia (blue-blind)
#E0C6B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d1d421;
/* rgb */ color: rgb(209, 212, 33);
/* oklch */ color: oklch(84.0% 0.178 110.7);
Tailwind
colors: {
  custom: {
    50: '#e4e071',
    500: '#d1d421',
    950: '#000000',
  },
}
SCSS
$custom: #d1d421;
$custom-light: #e4e071;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d421",
  "rgb": {
    "r": 209,
    "g": 212,
    "b": 33
  },
  "hsl": {
    "h": 61.006,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.84027,
    "c": 0.17785,
    "h": 110.7
  },
  "luminance": 0.60752
}

Semantic roles & 50–950 ramp

primary
#D1D421
secondary
#272574
accent
#38F03B
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D1D421

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

Preview Lab → · Contrast checker → · Palette generator →

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