#D2C172#D2C172

#D2C172 is a light, moderate yellow. Relative luminance 0.531; OKLCH L 80.8% C 0.102 H 97.5°. Best body text is #000000 at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#D2C172
RGBrgb(210, 193, 114)
HSLhsl(49, 52%, 64%)
HSVhsv(49, 46%, 82%)
CMYKcmyk(0%, 8.1%, 45.7%, 17.6%)
CIE-LABlab(77.91, -4.72, 41.79)
CIE-LCHlch(77.91, 42.05, 96.44°)
OKLaboklab(80.8% -0.0133 0.1007)
OKLCHoklch(80.8% 0.102 97.5)
XYZxyz(48.6869, 53.0582, 23.5930)
Luminance0.5306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C172 #7283D2
analogous
#D29172 #D2C172 #B3D272
triadic
#D2C172 #72D2C1 #C172D2
tetradic
#D2C172 #72D291 #7283D2 #D272B3
square
#D2C172 #72D291 #7283D2 #D272B3
split-complementary
#D2C172 #72B3D2 #9172D2
monochromatic
#998631 #C3AD44 #D2C172 #E1D5A0 #F0EACF

Accessibility & contrast

On white

1.81
#D2C172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.61
#D2C172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C172
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C172#FFFFFF#000000##000000
##D2C1721.001.8111.6111.61
#FFFFFF1.811.0021.0021.00
#00000011.6121.001.001.00
##00000011.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD6C
Deuteranopia (green-blind)
#D4C375
Tritanopia (blue-blind)
#DFB7AE
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c172;
/* rgb */ color: rgb(210, 193, 114);
/* oklch */ color: oklch(80.8% 0.102 97.5);
Tailwind
colors: {
  custom: {
    50: '#e1d39c',
    500: '#d2c172',
    950: '#000000',
  },
}
SCSS
$custom: #d2c172;
$custom-light: #e1d39c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c172",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 114
  },
  "hsl": {
    "h": 49.375,
    "s": 51.613,
    "l": 63.529
  },
  "oklch": {
    "l": 0.80796,
    "c": 0.10158,
    "h": 97.5
  },
  "luminance": 0.53056
}

Semantic roles & 50–950 ramp

primary
#D2C172
secondary
#4A599E
accent
#42BF26
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D2C172

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

Preview Lab → · Contrast checker → · Palette generator →

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