#D9D372#D9D372

#D9D372 is a very light, moderate yellow. Relative luminance 0.626; OKLCH L 85.1% C 0.120 H 105.5°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#D9D372
RGBrgb(217, 211, 114)
HSLhsl(57, 58%, 65%)
HSVhsv(57, 47%, 85%)
CMYKcmyk(0%, 2.8%, 47.5%, 14.9%)
CIE-LABlab(83.21, -11.10, 48.42)
CIE-LCHlch(83.21, 49.68, 102.91°)
OKLaboklab(85.14% -0.032 0.1154)
OKLCHoklch(85.14% 0.12 105.5)
XYZxyz(54.9481, 62.5567, 25.0965)
Luminance0.6256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D372 #7278D9
analogous
#D9A072 #D9D372 #ABD972
triadic
#D9D372 #72D9D3 #D372D9
tetradic
#D9D372 #72D9A0 #7278D9 #D972AB
square
#D9D372 #72D9A0 #7278D9 #D972AB
split-complementary
#D9D372 #72ABD9 #A072D9
monochromatic
#A49D2C #CCC442 #D9D372 #E6E2A2 #F3F1D2

Accessibility & contrast

On white

1.55
#D9D372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#D9D372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D372
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D372#FFFFFF#000000##000000
##D9D3721.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD6A
Deuteranopia (green-blind)
#E4D176
Tritanopia (blue-blind)
#E6C8BC
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d9d372;
/* rgb */ color: rgb(217, 211, 114);
/* oklch */ color: oklch(85.1% 0.120 105.5);
Tailwind
colors: {
  custom: {
    50: '#e7e09c',
    500: '#d9d372',
    950: '#000000',
  },
}
SCSS
$custom: #d9d372;
$custom-light: #e7e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d372",
  "rgb": {
    "r": 217,
    "g": 211,
    "b": 114
  },
  "hsl": {
    "h": 56.505,
    "s": 57.542,
    "l": 64.902
  },
  "oklch": {
    "l": 0.85139,
    "c": 0.11973,
    "h": 105.5
  },
  "luminance": 0.62555
}

Semantic roles & 50–950 ramp

primary
#D9D372
secondary
#474DA8
accent
#2AC520
background
#FEFEFC
surface
#FDFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D9D372

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

Preview Lab → · Contrast checker → · Palette generator →

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