#D8C170#D8C170

#D8C170 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.3% C 0.105 H 94.0°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D8C170
RGBrgb(216, 193, 112)
HSLhsl(47, 57%, 64%)
HSVhsv(47, 48%, 85%)
CMYKcmyk(0%, 10.6%, 48.1%, 15.3%)
CIE-LABlab(78.41, -2.46, 43.52)
CIE-LCHlch(78.41, 43.59, 93.24°)
OKLaboklab(81.31% -0.0073 0.1044)
OKLCHoklch(81.31% 0.105 94)
XYZxyz(50.3151, 53.9108, 23.0816)
Luminance0.5391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C170 #7087D8
analogous
#D88D70 #D8C170 #BBD870
triadic
#D8C170 #70D8C1 #C170D8
tetradic
#D8C170 #70D88D #7087D8 #D870BB
square
#D8C170 #70D88D #7087D8 #D870BB
split-complementary
#D8C170 #70BBD8 #8D70D8
monochromatic
#A2882C #CBAC40 #D8C170 #E5D6A0 #F2EBD0

Accessibility & contrast

On white

1.78
#D8C170 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D8C170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C170
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C170#FFFFFF#000000##000000
##D8C1701.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE69
Deuteranopia (green-blind)
#D6C573
Tritanopia (blue-blind)
#E6B6AE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d8c170;
/* rgb */ color: rgb(216, 193, 112);
/* oklch */ color: oklch(81.3% 0.105 94.0);
Tailwind
colors: {
  custom: {
    50: '#e6d39a',
    500: '#d8c170',
    950: '#000000',
  },
}
SCSS
$custom: #d8c170;
$custom-light: #e6d39a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c170",
  "rgb": {
    "r": 216,
    "g": 193,
    "b": 112
  },
  "hsl": {
    "h": 46.731,
    "s": 57.143,
    "l": 64.314
  },
  "oklch": {
    "l": 0.81308,
    "c": 0.10463,
    "h": 94
  },
  "luminance": 0.53909
}

Semantic roles & 50–950 ramp

primary
#D8C170
secondary
#475CA5
accent
#45C521
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D8C170

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

Preview Lab → · Contrast checker → · Palette generator →

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