#D2D152#D2D152

#D2D152 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.8% C 0.147 H 108.8°. Best body text is #000000 at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#D2D152
RGBrgb(210, 209, 82)
HSLhsl(60, 59%, 57%)
HSVhsv(60, 61%, 82%)
CMYKcmyk(0%, 0.5%, 61%, 17.6%)
CIE-LABlab(81.79, -15.47, 61.20)
CIE-LCHlch(81.79, 63.12, 104.19°)
OKLaboklab(83.77% -0.0474 0.1396)
OKLCHoklch(83.77% 0.147 108.8)
XYZxyz(50.9034, 59.9132, 16.8640)
Luminance0.5991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D152 #5253D2
analogous
#D29152 #D2D152 #93D252
triadic
#D2D152 #52D2D1 #D152D2
tetradic
#D2D152 #52D291 #5253D2 #D25293
square
#D2D152 #52D291 #5253D2 #D25293
split-complementary
#D2D152 #5293D2 #9152D2
monochromatic
#878623 #B7B630 #D2D152 #DFDE83 #EBEBB3

Accessibility & contrast

On white

1.62
#D2D152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.98
#D2D152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D152
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D152#FFFFFF#000000##000000
##D2D1521.001.6212.9812.98
#FFFFFF1.621.0021.0021.00
#00000012.9821.001.001.00
##00000012.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E3CD5A
Tritanopia (blue-blind)
#E0C5B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d2d152;
/* rgb */ color: rgb(210, 209, 82);
/* oklch */ color: oklch(83.8% 0.147 108.8);
Tailwind
colors: {
  custom: {
    50: '#e3de88',
    500: '#d2d152',
    950: '#000000',
  },
}
SCSS
$custom: #d2d152;
$custom-light: #e3de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d152",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 59.531,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83769,
    "c": 0.14742,
    "h": 108.8
  },
  "luminance": 0.59912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2D152

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

Preview Lab → · Contrast checker → · Palette generator →

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