#D2D252#D2D252

#D2D252 is a very light, vivid yellow. Relative luminance 0.604; OKLCH L 84.0% C 0.148 H 109.2°. Best body text is #000000 at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#D2D252
RGBrgb(210, 210, 82)
HSLhsl(60, 59%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0%, 61%, 17.6%)
CIE-LABlab(82.06, -15.97, 61.49)
CIE-LCHlch(82.06, 63.52, 104.56°)
OKLaboklab(83.98% -0.0488 0.1402)
OKLCHoklch(83.98% 0.148 109.2)
XYZxyz(51.1495, 60.4054, 16.9460)
Luminance0.6040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D252 #5252D2
analogous
#D29252 #D2D252 #92D252
triadic
#D2D252 #52D2D2 #D252D2
tetradic
#D2D252 #52D292 #5252D2 #D25292
square
#D2D252 #52D292 #5252D2 #D25292
split-complementary
#D2D252 #5292D2 #9252D2
monochromatic
#878723 #B7B730 #D2D252 #DFDF83 #EBEBB3

Accessibility & contrast

On white

1.61
#D2D252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.08
#D2D252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D252
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D252#FFFFFF#000000##000000
##D2D2521.001.6113.0813.08
#FFFFFF1.611.0021.0021.00
#00000013.0821.001.001.00
##00000013.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CA42
Deuteranopia (green-blind)
#E4CE5A
Tritanopia (blue-blind)
#E0C6B7
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d252;
/* rgb */ color: rgb(210, 210, 82);
/* oklch */ color: oklch(84.0% 0.148 109.2);
Tailwind
colors: {
  custom: {
    50: '#e3df88',
    500: '#d2d252',
    950: '#000000',
  },
}
SCSS
$custom: #d2d252;
$custom-light: #e3df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d252",
  "rgb": {
    "r": 210,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83982,
    "c": 0.14845,
    "h": 109.2
  },
  "luminance": 0.60404
}

Semantic roles & 50–950 ramp

primary
#D2D252
secondary
#3B3B8D
accent
#46E246
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D252

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

Preview Lab → · Contrast checker → · Palette generator →

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