#D7D771#D7D771

#D7D771 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.8% C 0.125 H 108.8°. Best body text is #000000 at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#D7D771
RGBrgb(215, 215, 113)
HSLhsl(60, 56%, 64%)
HSVhsv(60, 47%, 84%)
CMYKcmyk(0%, 0%, 47.4%, 15.7%)
CIE-LABlab(84.09, -14.00, 49.93)
CIE-LCHlch(84.09, 51.86, 105.66°)
OKLaboklab(85.8% -0.0403 0.1186)
OKLCHoklch(85.8% 0.125 108.8)
XYZxyz(55.3066, 64.2415, 25.1060)
Luminance0.6424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D771 #7171D7
analogous
#D7A471 #D7D771 #A4D771
triadic
#D7D771 #71D7D7 #D771D7
tetradic
#D7D771 #71D7A4 #7171D7 #D771A4
square
#D7D771 #71D7A4 #7171D7 #D771A4
split-complementary
#D7D771 #71A4D7 #A471D7
monochromatic
#A0A02D #CACA41 #D7D771 #E4E4A1 #F2F2D0

Accessibility & contrast

On white

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

On black

13.85
#D7D771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D771
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D771#FFFFFF#000000##000000
##D7D7711.001.5213.8513.85
#FFFFFF1.521.0021.0021.00
#00000013.8521.001.001.00
##00000013.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7d771;
/* rgb */ color: rgb(215, 215, 113);
/* oklch */ color: oklch(85.8% 0.125 108.8);
Tailwind
colors: {
  custom: {
    50: '#e5e39c',
    500: '#d7d771',
    950: '#000000',
  },
}
SCSS
$custom: #d7d771;
$custom-light: #e5e39c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d771",
  "rgb": {
    "r": 215,
    "g": 215,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 56.044,
    "l": 64.314
  },
  "oklch": {
    "l": 0.85799,
    "c": 0.12529,
    "h": 108.8
  },
  "luminance": 0.6424
}

Semantic roles & 50–950 ramp

primary
#D7D771
secondary
#4848A4
accent
#22C422
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D7D771

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

Preview Lab → · Contrast checker → · Palette generator →

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