#D4D522#D4D522

#D4D522 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.5% C 0.178 H 110.0°. Best body text is #000000 at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#D4D522
RGBrgb(212, 213, 34)
HSLhsl(60, 72%, 48%)
HSVhsv(60, 84%, 84%)
CMYKcmyk(0.5%, 0%, 84%, 16.5%)
CIE-LABlab(82.75, -18.74, 77.91)
CIE-LCHlch(82.75, 80.13, 103.53°)
OKLaboklab(84.49% -0.0609 0.167)
OKLCHoklch(84.49% 0.178 110)
XYZxyz(51.2364, 61.7026, 10.7239)
Luminance0.6170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D522 #2322D5
analogous
#D57C22 #D4D522 #7AD522
triadic
#D4D522 #22D4D5 #D522D4
tetradic
#D4D522 #22D57C #2322D5 #D5227A
square
#D4D522 #22D57C #2322D5 #D5227A
split-complementary
#D4D522 #227AD5 #7C22D5
monochromatic
#6B6B11 #9FA01A #D4D522 #E2E351 #EBEC86

Accessibility & contrast

On white

1.57
#D4D522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.34
#D4D522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D522
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D522#FFFFFF#000000##000000
##D4D5221.001.5713.3413.34
#FFFFFF1.571.0021.0021.00
#00000013.3421.001.001.00
##00000013.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CB00
Deuteranopia (green-blind)
#E8D036
Tritanopia (blue-blind)
#E4C7B6
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d4d522;
/* rgb */ color: rgb(212, 213, 34);
/* oklch */ color: oklch(84.5% 0.178 110.0);
Tailwind
colors: {
  custom: {
    50: '#e6e172',
    500: '#d4d522',
    950: '#000000',
  },
}
SCSS
$custom: #d4d522;
$custom-light: #e6e172;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d522",
  "rgb": {
    "r": 212,
    "g": 213,
    "b": 34
  },
  "hsl": {
    "h": 60.335,
    "s": 72.47,
    "l": 48.431
  },
  "oklch": {
    "l": 0.84493,
    "c": 0.17775,
    "h": 110
  },
  "luminance": 0.61701
}

Semantic roles & 50–950 ramp

primary
#D4D522
secondary
#272675
accent
#39EF3A
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#171509
muted
#85847D

Preview Lab

Preview with #D4D522

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

Preview Lab → · Contrast checker → · Palette generator →

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