#D2D951#D2D951

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

Color values

HEX#D2D951
RGBrgb(210, 217, 81)
HSLhsl(63, 64%, 58%)
HSVhsv(63, 63%, 85%)
CMYKcmyk(3.2%, 0%, 62.7%, 14.9%)
CIE-LABlab(83.93, -19.49, 63.89)
CIE-LCHlch(83.93, 66.79, 106.96°)
OKLaboklab(85.47% -0.0589 0.1451)
OKLCHoklch(85.47% 0.157 112.1)
XYZxyz(52.8779, 63.9226, 17.3358)
Luminance0.6392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D951 #5851D9
analogous
#D99C51 #D2D951 #8ED951
triadic
#D2D951 #51D2D9 #D951D2
tetradic
#D2D951 #51D99C #5851D9 #D9518E
square
#D2D951 #51D99C #5851D9 #D9518E
split-complementary
#D2D951 #518ED9 #9C51D9
monochromatic
#8A901F #BBC22A #D2D951 #DFE483 #ECEFB5

Accessibility & contrast

On white

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

On black

13.78
#D2D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D951
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D951#FFFFFF#000000##000000
##D2D9511.001.5213.7813.78
#FFFFFF1.521.0021.0021.00
#00000013.7821.001.001.00
##00000013.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d951;
/* rgb */ color: rgb(210, 217, 81);
/* oklch */ color: oklch(85.5% 0.157 112.1);
Tailwind
colors: {
  custom: {
    50: '#e3e488',
    500: '#d2d951',
    950: '#000000',
  },
}
SCSS
$custom: #d2d951;
$custom-light: #e3e488;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d951",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 63.088,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85471,
    "c": 0.15661,
    "h": 112.1
  },
  "luminance": 0.63921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2D951

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

Preview Lab → · Contrast checker → · Palette generator →

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