#D8C871#D8C871

#D8C871 is a very light, moderate yellow. Relative luminance 0.571; OKLCH L 82.8% C 0.110 H 99.1°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#D8C871
RGBrgb(216, 200, 113)
HSLhsl(51, 57%, 65%)
HSVhsv(51, 48%, 85%)
CMYKcmyk(0%, 7.4%, 47.7%, 15.3%)
CIE-LABlab(80.24, -5.99, 45.27)
CIE-LCHlch(80.24, 45.67, 97.54°)
OKLaboklab(82.76% -0.0174 0.1083)
OKLCHoklch(82.76% 0.11 99.1)
XYZxyz(51.9553, 57.1016, 23.9045)
Luminance0.5710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C871 #7181D8
analogous
#D89571 #D8C871 #B4D871
triadic
#D8C871 #71D8C8 #C871D8
tetradic
#D8C871 #71D895 #7181D8 #D871B4
square
#D8C871 #71D895 #7181D8 #D871B4
split-complementary
#D8C871 #71B4D8 #9571D8
monochromatic
#A2902D #CBB541 #D8C871 #E5DBA1 #F2EDD1

Accessibility & contrast

On white

1.69
#D8C871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#D8C871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C871
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C871#FFFFFF#000000##000000
##D8C8711.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C46A
Deuteranopia (green-blind)
#DBCA75
Tritanopia (blue-blind)
#E6BDB3
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d8c871;
/* rgb */ color: rgb(216, 200, 113);
/* oklch */ color: oklch(82.8% 0.110 99.1);
Tailwind
colors: {
  custom: {
    50: '#e6d89b',
    500: '#d8c871',
    950: '#000000',
  },
}
SCSS
$custom: #d8c871;
$custom-light: #e6d89b;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c871",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 50.68,
    "s": 56.906,
    "l": 64.51
  },
  "oklch": {
    "l": 0.82757,
    "c": 0.10973,
    "h": 99.1
  },
  "luminance": 0.571
}

Semantic roles & 50–950 ramp

primary
#D8C871
secondary
#4756A6
accent
#3AC421
background
#FEFEFC
surface
#FDFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D8C871

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

Preview Lab → · Contrast checker → · Palette generator →

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