#D2D971#D2D971

#D2D971 is a very light, vivid yellow. Relative luminance 0.645; OKLCH L 85.8% C 0.128 H 112.2°. Best body text is #000000 at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#D2D971
RGBrgb(210, 217, 113)
HSLhsl(64, 58%, 65%)
HSVhsv(64, 48%, 85%)
CMYKcmyk(3.2%, 0%, 47.9%, 14.9%)
CIE-LABlab(84.24, -16.99, 50.01)
CIE-LCHlch(84.24, 52.82, 108.76°)
OKLaboklab(85.82% -0.0486 0.1189)
OKLCHoklch(85.82% 0.128 112.2)
XYZxyz(54.3728, 64.5206, 25.2090)
Luminance0.6452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D971 #7871D9
analogous
#D9AC71 #D2D971 #9ED971
triadic
#D2D971 #71D2D9 #D971D2
tetradic
#D2D971 #71D9AC #7871D9 #D9719E
square
#D2D971 #71D9AC #7871D9 #D9719E
split-complementary
#D2D971 #719ED9 #AC71D9
monochromatic
#9CA42C #C3CC41 #D2D971 #E1E6A1 #F1F3D2

Accessibility & contrast

On white

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

On black

13.90
#D2D971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D971
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D971#FFFFFF#000000##000000
##D2D9711.001.5113.9013.90
#FFFFFF1.511.0021.0021.00
#00000013.9021.001.001.00
##00000013.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d971;
/* rgb */ color: rgb(210, 217, 113);
/* oklch */ color: oklch(85.8% 0.128 112.2);
Tailwind
colors: {
  custom: {
    50: '#e2e49c',
    500: '#d2d971',
    950: '#000000',
  },
}
SCSS
$custom: #d2d971;
$custom-light: #e2e49c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d971",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 113
  },
  "hsl": {
    "h": 64.038,
    "s": 57.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.85819,
    "c": 0.12842,
    "h": 112.2
  },
  "luminance": 0.6452
}

Semantic roles & 50–950 ramp

primary
#D2D971
secondary
#4D47A7
accent
#20C52B
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D971

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

Preview Lab → · Contrast checker → · Palette generator →

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