#D7D972#D7D972

#D7D972 is a very light, vivid yellow. Relative luminance 0.653; OKLCH L 86.2% C 0.127 H 109.8°. Best body text is #000000 at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#D7D972
RGBrgb(215, 217, 114)
HSLhsl(61, 58%, 65%)
HSVhsv(61, 47%, 85%)
CMYKcmyk(0.9%, 0%, 47.5%, 14.9%)
CIE-LABlab(84.63, -14.90, 50.10)
CIE-LCHlch(84.63, 52.27, 106.57°)
OKLaboklab(86.23% -0.0428 0.1191)
OKLCHoklch(86.23% 0.127 109.8)
XYZxyz(55.8756, 65.2889, 25.5749)
Luminance0.6529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D972 #7472D9
analogous
#D9A872 #D7D972 #A4D972
triadic
#D7D972 #72D7D9 #D972D7
tetradic
#D7D972 #72D9A8 #7472D9 #D972A4
square
#D7D972 #72D9A8 #7472D9 #D972A4
split-complementary
#D7D972 #72A4D9 #A872D9
monochromatic
#A2A42C #C9CC42 #D7D972 #E5E6A2 #F2F3D2

Accessibility & contrast

On white

1.49
#D7D972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.06
#D7D972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D972
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D972#FFFFFF#000000##000000
##D7D9721.001.4914.0614.06
#FFFFFF1.491.0021.0021.00
#00000014.0621.001.001.00
##00000014.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D169
Deuteranopia (green-blind)
#E8D577
Tritanopia (blue-blind)
#E3CEC1
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d7d972;
/* rgb */ color: rgb(215, 217, 114);
/* oklch */ color: oklch(86.2% 0.127 109.8);
Tailwind
colors: {
  custom: {
    50: '#e5e49d',
    500: '#d7d972',
    950: '#000000',
  },
}
SCSS
$custom: #d7d972;
$custom-light: #e5e49d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d972",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 114
  },
  "hsl": {
    "h": 61.165,
    "s": 57.542,
    "l": 64.902
  },
  "oklch": {
    "l": 0.86233,
    "c": 0.12655,
    "h": 109.8
  },
  "luminance": 0.65288
}

Semantic roles & 50–950 ramp

primary
#D7D972
secondary
#4947A8
accent
#20C524
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D7D972

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

Preview Lab → · Contrast checker → · Palette generator →

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