#D2D520#D2D520

#D2D520 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 84.3% C 0.179 H 110.7°. Best body text is #000000 at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#D2D520
RGBrgb(210, 213, 32)
HSLhsl(61, 74%, 48%)
HSVhsv(61, 85%, 84%)
CMYKcmyk(1.4%, 0%, 85%, 16.5%)
CIE-LABlab(82.59, -19.63, 78.13)
CIE-LCHlch(82.59, 80.55, 104.11°)
OKLaboklab(84.32% -0.0633 0.1673)
OKLCHoklch(84.32% 0.179 110.7)
XYZxyz(50.6353, 61.3959, 10.5495)
Luminance0.6139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D520 #2320D5
analogous
#D57D20 #D2D520 #78D520
triadic
#D2D520 #20D2D5 #D520D2
tetradic
#D2D520 #20D57D #2320D5 #D52078
square
#D2D520 #20D57D #2320D5 #D52078
split-complementary
#D2D520 #2078D5 #7D20D5
monochromatic
#696B10 #9EA018 #D2D520 #E2E44E #EBEC83

Accessibility & contrast

On white

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

On black

13.28
#D2D520 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D520
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D520#FFFFFF#000000##000000
##D2D5201.001.5813.2813.28
#FFFFFF1.581.0021.0021.00
#00000013.2821.001.001.00
##00000013.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d520;
/* rgb */ color: rgb(210, 213, 32);
/* oklch */ color: oklch(84.3% 0.179 110.7);
Tailwind
colors: {
  custom: {
    50: '#e4e171',
    500: '#d2d520',
    950: '#000000',
  },
}
SCSS
$custom: #d2d520;
$custom-light: #e4e171;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d520",
  "rgb": {
    "r": 210,
    "g": 213,
    "b": 32
  },
  "hsl": {
    "h": 60.994,
    "s": 73.878,
    "l": 48.039
  },
  "oklch": {
    "l": 0.84321,
    "c": 0.17886,
    "h": 110.7
  },
  "luminance": 0.61394
}

Semantic roles & 50–950 ramp

primary
#D2D520
secondary
#262574
accent
#37F13A
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D2D520

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

Preview Lab → · Contrast checker → · Palette generator →

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