#D2D771#D2D771

#D2D771 is a very light, vivid yellow. Relative luminance 0.635; OKLCH L 85.4% C 0.126 H 111.3°. Best body text is #000000 at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#D2D771
RGBrgb(210, 215, 113)
HSLhsl(63, 56%, 64%)
HSVhsv(63, 47%, 84%)
CMYKcmyk(2.3%, 0%, 47.4%, 15.7%)
CIE-LABlab(83.70, -15.99, 49.37)
CIE-LCHlch(83.70, 51.90, 107.95°)
OKLaboklab(85.39% -0.0457 0.1175)
OKLCHoklch(85.39% 0.126 111.3)
XYZxyz(53.8604, 63.4958, 25.0382)
Luminance0.6350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D771 #7671D7
analogous
#D7A971 #D2D771 #9FD771
triadic
#D2D771 #71D2D7 #D771D2
tetradic
#D2D771 #71D7A9 #7671D7 #D7719F
square
#D2D771 #71D7A9 #7671D7 #D7719F
split-complementary
#D2D771 #719FD7 #A971D7
monochromatic
#9BA02D #C3CA41 #D2D771 #E1E4A1 #F0F2D0

Accessibility & contrast

On white

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

On black

13.70
#D2D771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D771
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D771#FFFFFF#000000##000000
##D2D7711.001.5313.7013.70
#FFFFFF1.531.0021.0021.00
#00000013.7021.001.001.00
##00000013.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CF68
Deuteranopia (green-blind)
#E5D276
Tritanopia (blue-blind)
#DECCBF
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d771;
/* rgb */ color: rgb(210, 215, 113);
/* oklch */ color: oklch(85.4% 0.126 111.3);
Tailwind
colors: {
  custom: {
    50: '#e1e39c',
    500: '#d2d771',
    950: '#000000',
  },
}
SCSS
$custom: #d2d771;
$custom-light: #e1e39c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d771",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 113
  },
  "hsl": {
    "h": 62.941,
    "s": 56.044,
    "l": 64.314
  },
  "oklch": {
    "l": 0.85394,
    "c": 0.12606,
    "h": 111.3
  },
  "luminance": 0.63495
}

Semantic roles & 50–950 ramp

primary
#D2D771
secondary
#4C48A4
accent
#22C42A
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D771

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

Preview Lab → · Contrast checker → · Palette generator →

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