#D9D772#D9D772

#D9D772 is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 86.0% C 0.124 H 107.7°. Best body text is #000000 at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#D9D772
RGBrgb(217, 215, 114)
HSLhsl(59, 58%, 65%)
HSVhsv(59, 47%, 85%)
CMYKcmyk(0%, 0.9%, 47.5%, 14.9%)
CIE-LABlab(84.26, -13.11, 49.69)
CIE-LCHlch(84.26, 51.39, 104.78°)
OKLaboklab(85.98% -0.0378 0.1182)
OKLCHoklch(85.98% 0.124 107.7)
XYZxyz(55.9542, 64.5689, 25.4318)
Luminance0.6457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D772 #7274D9
analogous
#D9A472 #D9D772 #A8D972
triadic
#D9D772 #72D9D7 #D772D9
tetradic
#D9D772 #72D9A4 #7274D9 #D972A8
square
#D9D772 #72D9A4 #7274D9 #D972A8
split-complementary
#D9D772 #72A8D9 #A472D9
monochromatic
#A4A22C #CCC942 #D9D772 #E6E5A2 #F3F2D2

Accessibility & contrast

On white

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

On black

13.91
#D9D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D772
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D772#FFFFFF#000000##000000
##D9D7721.001.5113.9113.91
#FFFFFF1.511.0021.0021.00
#00000013.9121.001.001.00
##00000013.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D069
Deuteranopia (green-blind)
#E7D477
Tritanopia (blue-blind)
#E6CCC0
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d9d772;
/* rgb */ color: rgb(217, 215, 114);
/* oklch */ color: oklch(86.0% 0.124 107.7);
Tailwind
colors: {
  custom: {
    50: '#e7e39d',
    500: '#d9d772',
    950: '#000000',
  },
}
SCSS
$custom: #d9d772;
$custom-light: #e7e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d772",
  "rgb": {
    "r": 217,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 58.835,
    "s": 57.542,
    "l": 64.902
  },
  "oklch": {
    "l": 0.85976,
    "c": 0.12407,
    "h": 107.7
  },
  "luminance": 0.64567
}

Semantic roles & 50–950 ramp

primary
#D9D772
secondary
#4749A8
accent
#24C520
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D9D772

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

Preview Lab → · Contrast checker → · Palette generator →

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