#D1D420#D1D420

#D1D420 is a very light, vivid yellow. Relative luminance 0.607; 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#D1D420
RGBrgb(209, 212, 32)
HSLhsl(61, 74%, 48%)
HSVhsv(61, 85%, 83%)
CMYKcmyk(1.4%, 0%, 84.9%, 16.9%)
CIE-LABlab(82.24, -19.56, 77.81)
CIE-LCHlch(82.24, 80.23, 104.11°)
OKLaboklab(84.02% -0.0631 0.1666)
OKLCHoklch(84.02% 0.178 110.7)
XYZxyz(50.1006, 60.7480, 10.4526)
Luminance0.6075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D420 #2320D4
analogous
#D47D20 #D1D420 #77D420
triadic
#D1D420 #20D1D4 #D420D1
tetradic
#D1D420 #20D47D #2320D4 #D42077
square
#D1D420 #20D47D #2320D4 #D42077
split-complementary
#D1D420 #2077D4 #7D20D4
monochromatic
#686A10 #9D9F18 #D1D420 #E2E44D #EAEC82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1D420#FFFFFF#000000##000000
##D1D4201.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)
#E7CF34
Tritanopia (blue-blind)
#E0C6B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d1d420;
/* rgb */ color: rgb(209, 212, 32);
/* oklch */ color: oklch(84.0% 0.178 110.7);
Tailwind
colors: {
  custom: {
    50: '#e4e071',
    500: '#d1d420',
    950: '#000000',
  },
}
SCSS
$custom: #d1d420;
$custom-light: #e4e071;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d420",
  "rgb": {
    "r": 209,
    "g": 212,
    "b": 32
  },
  "hsl": {
    "h": 61,
    "s": 73.77,
    "l": 47.843
  },
  "oklch": {
    "l": 0.84023,
    "c": 0.17817,
    "h": 110.7
  },
  "luminance": 0.60747
}

Semantic roles & 50–950 ramp

primary
#D1D420
secondary
#262573
accent
#37F03A
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D1D420

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

Preview Lab → · Contrast checker → · Palette generator →

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