#D1D951#D1D951

#D1D951 is a very light, vivid yellow. Relative luminance 0.638; OKLCH L 85.4% C 0.157 H 112.5°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#D1D951
RGBrgb(209, 217, 81)
HSLhsl(64, 64%, 58%)
HSVhsv(64, 63%, 85%)
CMYKcmyk(3.7%, 0%, 62.7%, 14.9%)
CIE-LABlab(83.85, -19.89, 63.78)
CIE-LCHlch(83.85, 66.81, 107.32°)
OKLaboklab(85.39% -0.06 0.1449)
OKLCHoklch(85.39% 0.157 112.5)
XYZxyz(52.5940, 63.7762, 17.3225)
Luminance0.6378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1D951 #5951D9
analogous
#D99D51 #D1D951 #8DD951
triadic
#D1D951 #51D1D9 #D951D1
tetradic
#D1D951 #51D99D #5951D9 #D9518D
square
#D1D951 #51D99D #5951D9 #D9518D
split-complementary
#D1D951 #518DD9 #9D51D9
monochromatic
#89901F #B9C22A #D1D951 #DEE483 #ECEFB5

Accessibility & contrast

On white

1.53
#D1D951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.76
#D1D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1D951
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1D951#FFFFFF#000000##000000
##D1D9511.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1d951;
/* rgb */ color: rgb(209, 217, 81);
/* oklch */ color: oklch(85.4% 0.157 112.5);
Tailwind
colors: {
  custom: {
    50: '#e2e488',
    500: '#d1d951',
    950: '#000000',
  },
}
SCSS
$custom: #d1d951;
$custom-light: #e2e488;
$custom-dark: #000000;
JSON
{
  "hex": "#d1d951",
  "rgb": {
    "r": 209,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 63.529,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85391,
    "c": 0.15683,
    "h": 112.5
  },
  "luminance": 0.63775
}

Semantic roles & 50–950 ramp

primary
#D1D951
secondary
#3E3995
accent
#41E74A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D1D951

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

Preview Lab → · Contrast checker → · Palette generator →

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