#D2C170#D2C170

#D2C170 is a light, moderate yellow. Relative luminance 0.530; OKLCH L 80.8% C 0.104 H 97.8°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#D2C170
RGBrgb(210, 193, 112)
HSLhsl(50, 52%, 63%)
HSVhsv(50, 47%, 82%)
CMYKcmyk(0%, 8.1%, 46.7%, 17.6%)
CIE-LABlab(77.88, -4.91, 42.76)
CIE-LCHlch(77.88, 43.04, 96.56°)
OKLaboklab(80.77% -0.014 0.1028)
OKLCHoklch(80.77% 0.104 97.8)
XYZxyz(48.5743, 53.0132, 23.0000)
Luminance0.5301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C170 #7081D2
analogous
#D29070 #D2C170 #B2D270
triadic
#D2C170 #70D2C1 #C170D2
tetradic
#D2C170 #70D290 #7081D2 #D270B2
square
#D2C170 #70D290 #7081D2 #D270B2
split-complementary
#D2C170 #70B2D2 #9070D2
monochromatic
#988630 #C3AD41 #D2C170 #E1D59F #EFE9CD

Accessibility & contrast

On white

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

On black

11.60
#D2C170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C170
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C170#FFFFFF#000000##000000
##D2C1701.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBD69
Deuteranopia (green-blind)
#D4C373
Tritanopia (blue-blind)
#DFB6AE
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c170;
/* rgb */ color: rgb(210, 193, 112);
/* oklch */ color: oklch(80.8% 0.104 97.8);
Tailwind
colors: {
  custom: {
    50: '#e1d39a',
    500: '#d2c170',
    950: '#000000',
  },
}
SCSS
$custom: #d2c170;
$custom-light: #e1d39a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c170",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 112
  },
  "hsl": {
    "h": 49.592,
    "s": 52.128,
    "l": 63.137
  },
  "oklch": {
    "l": 0.80766,
    "c": 0.1037,
    "h": 97.8
  },
  "luminance": 0.53011
}

Semantic roles & 50–950 ramp

primary
#D2C170
secondary
#49589D
accent
#41C026
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D2C170

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

Preview Lab → · Contrast checker → · Palette generator →

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