#D5D951#D5D951

#D5D951 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 85.7% C 0.156 H 110.9°. Best body text is #000000 at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#D5D951
RGBrgb(213, 217, 81)
HSLhsl(62, 64%, 58%)
HSVhsv(62, 63%, 85%)
CMYKcmyk(1.8%, 0%, 62.7%, 14.9%)
CIE-LABlab(84.16, -18.26, 64.20)
CIE-LCHlch(84.16, 66.75, 105.88°)
OKLaboklab(85.71% -0.0556 0.1457)
OKLCHoklch(85.71% 0.156 110.9)
XYZxyz(53.7402, 64.3673, 17.3762)
Luminance0.6437 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D951 #5551D9
analogous
#D99951 #D5D951 #91D951
triadic
#D5D951 #51D5D9 #D951D5
tetradic
#D5D951 #51D999 #5551D9 #D95191
square
#D5D951 #51D999 #5551D9 #D95191
split-complementary
#D5D951 #5191D9 #9951D9
monochromatic
#8D901F #BEC22A #D5D951 #E1E483 #EDEFB5

Accessibility & contrast

On white

1.51
#D5D951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.87
#D5D951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D951
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D951#FFFFFF#000000##000000
##D5D9511.001.5113.8713.87
#FFFFFF1.511.0021.0021.00
#00000013.8721.001.001.00
##00000013.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D040
Deuteranopia (green-blind)
#EAD45A
Tritanopia (blue-blind)
#E3CCBD
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d951;
/* rgb */ color: rgb(213, 217, 81);
/* oklch */ color: oklch(85.7% 0.156 110.9);
Tailwind
colors: {
  custom: {
    50: '#e5e488',
    500: '#d5d951',
    950: '#000000',
  },
}
SCSS
$custom: #d5d951;
$custom-light: #e5e488;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d951",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 81
  },
  "hsl": {
    "h": 61.765,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.85712,
    "c": 0.15595,
    "h": 110.9
  },
  "luminance": 0.64366
}

Semantic roles & 50–950 ramp

primary
#D5D951
secondary
#3C3995
accent
#41E746
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D5D951

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

Preview Lab → · Contrast checker → · Palette generator →

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