#D2D173#D2D173

#D2D173 is a very light, moderate yellow. Relative luminance 0.605; OKLCH L 84.2% C 0.117 H 108.1°. Best body text is #000000 at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#D2D173
RGBrgb(210, 209, 115)
HSLhsl(59, 51%, 64%)
HSVhsv(59, 45%, 82%)
CMYKcmyk(0%, 0.5%, 45.2%, 17.6%)
CIE-LABlab(82.13, -12.80, 46.50)
CIE-LCHlch(82.13, 48.23, 105.39°)
OKLaboklab(84.15% -0.0364 0.1113)
OKLCHoklch(84.15% 0.117 108.1)
XYZxyz(52.4744, 60.5416, 25.1378)
Luminance0.6054 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D173 #7374D2
analogous
#D2A173 #D2D173 #A3D273
triadic
#D2D173 #73D2D1 #D173D2
tetradic
#D2D173 #73D2A1 #7374D2 #D273A3
square
#D2D173 #73D2A1 #7374D2 #D273A3
split-complementary
#D2D173 #73A3D2 #A173D2
monochromatic
#999831 #C3C245 #D2D173 #E1E0A1 #F0EFD0

Accessibility & contrast

On white

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

On black

13.11
#D2D173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D173
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D173#FFFFFF#000000##000000
##D2D1731.001.6013.1113.11
#FFFFFF1.601.0021.0021.00
#00000013.1121.001.001.00
##00000013.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DECA6B
Deuteranopia (green-blind)
#E0CE77
Tritanopia (blue-blind)
#DEC7BB
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d173;
/* rgb */ color: rgb(210, 209, 115);
/* oklch */ color: oklch(84.2% 0.117 108.1);
Tailwind
colors: {
  custom: {
    50: '#e1df9d',
    500: '#d2d173',
    950: '#000000',
  },
}
SCSS
$custom: #d2d173;
$custom-light: #e1df9d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d173",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 115
  },
  "hsl": {
    "h": 59.368,
    "s": 51.351,
    "l": 63.725
  },
  "oklch": {
    "l": 0.8415,
    "c": 0.11709,
    "h": 108.1
  },
  "luminance": 0.6054
}

Semantic roles & 50–950 ramp

primary
#D2D173
secondary
#4B4C9F
accent
#28BF27
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#16150E
muted
#84847F

Preview Lab

Preview with #D2D173

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

Preview Lab → · Contrast checker → · Palette generator →

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