#D1D522#D1D522

#D1D522 is a very light, vivid yellow. Relative luminance 0.613; OKLCH L 84.2% C 0.178 H 111.1°. Best body text is #000000 at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#D1D522
RGBrgb(209, 213, 34)
HSLhsl(61, 72%, 48%)
HSVhsv(61, 84%, 84%)
CMYKcmyk(1.9%, 0%, 84%, 16.5%)
CIE-LABlab(82.52, -20.00, 77.61)
CIE-LCHlch(82.52, 80.15, 104.45°)
OKLaboklab(84.25% -0.0642 0.1665)
OKLCHoklch(84.25% 0.178 111.1)
XYZxyz(50.3794, 61.2607, 10.6837)
Luminance0.6126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D522 #2622D5
analogous
#D57F22 #D1D522 #77D522
triadic
#D1D522 #22D1D5 #D522D1
tetradic
#D1D522 #22D57F #2622D5 #D52277
square
#D1D522 #22D57F #2622D5 #D52277
split-complementary
#D1D522 #2277D5 #7F22D5
monochromatic
#696B11 #9DA01A #D1D522 #E0E351 #E9EC86

Accessibility & contrast

On white

1.58
#D1D522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.25
#D1D522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D522
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D522#FFFFFF#000000##000000
##D1D5221.001.5813.2513.25
#FFFFFF1.581.0021.0021.00
#00000013.2521.001.001.00
##00000013.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CB00
Deuteranopia (green-blind)
#E8CF36
Tritanopia (blue-blind)
#E0C7B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d1d522;
/* rgb */ color: rgb(209, 213, 34);
/* oklch */ color: oklch(84.2% 0.178 111.1);
Tailwind
colors: {
  custom: {
    50: '#e4e171',
    500: '#d1d522',
    950: '#000000',
  },
}
SCSS
$custom: #d1d522;
$custom-light: #e4e171;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d522",
  "rgb": {
    "r": 209,
    "g": 213,
    "b": 34
  },
  "hsl": {
    "h": 61.341,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.84246,
    "c": 0.17846,
    "h": 111.1
  },
  "luminance": 0.61259
}

Semantic roles & 50–950 ramp

primary
#D1D522
secondary
#282675
accent
#39EF3D
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D1D522

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

Preview Lab → · Contrast checker → · Palette generator →

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