#D2D052#D2D052

#D2D052 is a very light, vivid yellow. Relative luminance 0.594; OKLCH L 83.6% C 0.146 H 108.3°. Best body text is #000000 at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#D2D052
RGBrgb(210, 208, 82)
HSLhsl(59, 59%, 57%)
HSVhsv(59, 61%, 82%)
CMYKcmyk(0%, 1%, 61%, 17.6%)
CIE-LABlab(81.52, -14.97, 60.91)
CIE-LCHlch(81.52, 62.72, 103.81°)
OKLaboklab(83.56% -0.046 0.139)
OKLCHoklch(83.56% 0.146 108.3)
XYZxyz(50.6588, 59.4241, 16.7825)
Luminance0.5942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D052 #5254D2
analogous
#D29052 #D2D052 #94D252
triadic
#D2D052 #52D2D0 #D052D2
tetradic
#D2D052 #52D290 #5254D2 #D25294
square
#D2D052 #52D290 #5254D2 #D25294
split-complementary
#D2D052 #5294D2 #9052D2
monochromatic
#878523 #B7B530 #D2D052 #DFDD83 #EBEAB3

Accessibility & contrast

On white

1.63
#D2D052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.88
#D2D052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D052
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D052#FFFFFF#000000##000000
##D2D0521.001.6312.8812.88
#FFFFFF1.631.0021.0021.00
#00000012.8821.001.001.00
##00000012.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C843
Deuteranopia (green-blind)
#E2CD5A
Tritanopia (blue-blind)
#E0C4B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d2d052;
/* rgb */ color: rgb(210, 208, 82);
/* oklch */ color: oklch(83.6% 0.146 108.3);
Tailwind
colors: {
  custom: {
    50: '#e3de88',
    500: '#d2d052',
    950: '#000000',
  },
}
SCSS
$custom: #d2d052;
$custom-light: #e3de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d052",
  "rgb": {
    "r": 210,
    "g": 208,
    "b": 82
  },
  "hsl": {
    "h": 59.063,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83556,
    "c": 0.14639,
    "h": 108.3
  },
  "luminance": 0.59423
}

Semantic roles & 50–950 ramp

primary
#D2D052
secondary
#3B3C8D
accent
#48E246
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D052

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

Preview Lab → · Contrast checker → · Palette generator →

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