#D4D021#D4D021

#D4D021 is a very light, vivid yellow. Relative luminance 0.592; OKLCH L 83.4% C 0.174 H 108.2°. Best body text is #000000 at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#D4D021
RGBrgb(212, 208, 33)
HSLhsl(59, 73%, 48%)
HSVhsv(59, 84%, 83%)
CMYKcmyk(0%, 1.9%, 84.4%, 16.9%)
CIE-LABlab(81.41, -16.30, 77.01)
CIE-LCHlch(81.41, 78.72, 101.95°)
OKLaboklab(83.42% -0.0541 0.1649)
OKLCHoklch(83.42% 0.174 108.2)
XYZxyz(49.9839, 59.2204, 10.2363)
Luminance0.5922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D021 #2125D4
analogous
#D47621 #D4D021 #7FD421
triadic
#D4D021 #21D4D0 #D021D4
tetradic
#D4D021 #21D476 #2125D4 #D4217F
square
#D4D021 #21D476 #2125D4 #D4217F
split-complementary
#D4D021 #217FD4 #7621D4
monochromatic
#6A6811 #9F9C19 #D4D021 #E4E04F #ECE984

Accessibility & contrast

On white

1.64
#D4D021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.84
#D4D021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D021
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D021#FFFFFF#000000##000000
##D4D0211.001.6412.8412.84
#FFFFFF1.641.0021.0021.00
#00000012.8421.001.001.00
##00000012.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C700
Deuteranopia (green-blind)
#E5CD34
Tritanopia (blue-blind)
#E4C2B2
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d4d021;
/* rgb */ color: rgb(212, 208, 33);
/* oklch */ color: oklch(83.4% 0.174 108.2);
Tailwind
colors: {
  custom: {
    50: '#e6de70',
    500: '#d4d021',
    950: '#000000',
  },
}
SCSS
$custom: #d4d021;
$custom-light: #e6de70;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d021",
  "rgb": {
    "r": 212,
    "g": 208,
    "b": 33
  },
  "hsl": {
    "h": 58.659,
    "s": 73.061,
    "l": 48.039
  },
  "oklch": {
    "l": 0.83419,
    "c": 0.17355,
    "h": 108.2
  },
  "luminance": 0.59219
}

Semantic roles & 50–950 ramp

primary
#D4D021
secondary
#252774
accent
#3CF038
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D4D021

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

Preview Lab → · Contrast checker → · Palette generator →

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