#D2D172#D2D172

#D2D172 is a very light, moderate yellow. Relative luminance 0.605; OKLCH L 84.1% C 0.118 H 108.2°. Best body text is #000000 at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#D2D172
RGBrgb(210, 209, 114)
HSLhsl(59, 52%, 64%)
HSVhsv(59, 46%, 82%)
CMYKcmyk(0%, 0.5%, 45.7%, 17.6%)
CIE-LABlab(82.12, -12.90, 46.97)
CIE-LCHlch(82.12, 48.71, 105.36°)
OKLaboklab(84.14% -0.0368 0.1123)
OKLCHoklch(84.14% 0.118 108.2)
XYZxyz(52.4171, 60.5187, 24.8364)
Luminance0.6052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D172 #7273D2
analogous
#D2A172 #D2D172 #A3D272
triadic
#D2D172 #72D2D1 #D172D2
tetradic
#D2D172 #72D2A1 #7273D2 #D272A3
square
#D2D172 #72D2A1 #7273D2 #D272A3
split-complementary
#D2D172 #72A3D2 #A172D2
monochromatic
#999831 #C3C244 #D2D172 #E1E0A0 #F0EFCF

Accessibility & contrast

On white

1.60
#D2D172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.10
#D2D172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D172
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D172#FFFFFF#000000##000000
##D2D1721.001.6013.1013.10
#FFFFFF1.601.0021.0021.00
#00000013.1021.001.001.00
##00000013.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFCA6A
Deuteranopia (green-blind)
#E0CE76
Tritanopia (blue-blind)
#DEC6BB
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d172;
/* rgb */ color: rgb(210, 209, 114);
/* oklch */ color: oklch(84.1% 0.118 108.2);
Tailwind
colors: {
  custom: {
    50: '#e1df9c',
    500: '#d2d172',
    950: '#000000',
  },
}
SCSS
$custom: #d2d172;
$custom-light: #e1df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d172",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 114
  },
  "hsl": {
    "h": 59.375,
    "s": 51.613,
    "l": 63.529
  },
  "oklch": {
    "l": 0.84136,
    "c": 0.11813,
    "h": 108.2
  },
  "luminance": 0.60517
}

Semantic roles & 50–950 ramp

primary
#D2D172
secondary
#4A4B9E
accent
#28BF26
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D172

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

Preview Lab → · Contrast checker → · Palette generator →

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