#D8D771#D8D771

#D8D771 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 85.9% C 0.125 H 108.3°. Best body text is #000000 at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#D8D771
RGBrgb(216, 215, 113)
HSLhsl(59, 57%, 65%)
HSVhsv(59, 48%, 85%)
CMYKcmyk(0%, 0.5%, 47.7%, 15.3%)
CIE-LABlab(84.17, -13.60, 50.04)
CIE-LCHlch(84.17, 51.86, 105.20°)
OKLaboklab(85.88% -0.0392 0.1189)
OKLCHoklch(85.88% 0.125 108.3)
XYZxyz(55.6012, 64.3934, 25.1198)
Luminance0.6439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D771 #7172D8
analogous
#D8A371 #D8D771 #A6D871
triadic
#D8D771 #71D8D7 #D771D8
tetradic
#D8D771 #71D8A3 #7172D8 #D871A6
square
#D8D771 #71D8A3 #7172D8 #D871A6
split-complementary
#D8D771 #71A6D8 #A371D8
monochromatic
#A2A12D #CBC941 #D8D771 #E5E5A1 #F2F2D1

Accessibility & contrast

On white

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

On black

13.88
#D8D771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D771
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D771#FFFFFF#000000##000000
##D8D7711.001.5113.8813.88
#FFFFFF1.511.0021.0021.00
#00000013.8821.001.001.00
##00000013.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D068
Deuteranopia (green-blind)
#E7D476
Tritanopia (blue-blind)
#E5CCBF
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d771;
/* rgb */ color: rgb(216, 215, 113);
/* oklch */ color: oklch(85.9% 0.125 108.3);
Tailwind
colors: {
  custom: {
    50: '#e6e39c',
    500: '#d8d771',
    950: '#000000',
  },
}
SCSS
$custom: #d8d771;
$custom-light: #e6e39c;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d771",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 113
  },
  "hsl": {
    "h": 59.417,
    "s": 56.906,
    "l": 64.51
  },
  "oklch": {
    "l": 0.85881,
    "c": 0.12517,
    "h": 108.3
  },
  "luminance": 0.64392
}

Semantic roles & 50–950 ramp

primary
#D8D771
secondary
#4748A6
accent
#23C421
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D8D771

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

Preview Lab → · Contrast checker → · Palette generator →

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