#D2D952#D2D952

#D2D952 is a very light, vivid yellow. Relative luminance 0.639; OKLCH L 85.5% C 0.156 H 112.1°. Best body text is #000000 at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#D2D952
RGBrgb(210, 217, 82)
HSLhsl(63, 64%, 59%)
HSVhsv(63, 62%, 85%)
CMYKcmyk(3.2%, 0%, 62.2%, 14.9%)
CIE-LABlab(83.93, -19.42, 63.49)
CIE-LCHlch(83.93, 66.39, 107.01°)
OKLaboklab(85.48% -0.0586 0.1444)
OKLCHoklch(85.48% 0.156 112.1)
XYZxyz(52.9156, 63.9377, 17.5347)
Luminance0.6394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D952 #5952D9
analogous
#D99C52 #D2D952 #8ED952
triadic
#D2D952 #52D2D9 #D952D2
tetradic
#D2D952 #52D99C #5952D9 #D9528E
square
#D2D952 #52D99C #5952D9 #D9528E
split-complementary
#D2D952 #528ED9 #9C52D9
monochromatic
#8B9120 #BBC32B #D2D952 #DFE484 #ECEFB6

Accessibility & contrast

On white

1.52
#D2D952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.79
#D2D952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D952
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D952#FFFFFF#000000##000000
##D2D9521.001.5213.7913.79
#FFFFFF1.521.0021.0021.00
#00000013.7921.001.001.00
##00000013.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D041
Deuteranopia (green-blind)
#E9D35B
Tritanopia (blue-blind)
#DFCDBD
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d952;
/* rgb */ color: rgb(210, 217, 82);
/* oklch */ color: oklch(85.5% 0.156 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e489',
    500: '#d2d952',
    950: '#000000',
  },
}
SCSS
$custom: #d2d952;
$custom-light: #e3e489;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d952",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 82
  },
  "hsl": {
    "h": 63.111,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8548,
    "c": 0.15585,
    "h": 112.1
  },
  "luminance": 0.63937
}

Semantic roles & 50–950 ramp

primary
#D2D952
secondary
#3E3996
accent
#41E749
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2D952

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

Preview Lab → · Contrast checker → · Palette generator →

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