#D8C847#D8C847

#D8C847 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.3% C 0.147 H 102.2°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D8C847
RGBrgb(216, 200, 71)
HSLhsl(53, 65%, 56%)
HSVhsv(53, 67%, 85%)
CMYKcmyk(0%, 7.4%, 67.1%, 15.3%)
CIE-LABlab(79.82, -9.09, 63.79)
CIE-LCHlch(79.82, 64.43, 98.11°)
OKLaboklab(82.29% -0.0309 0.1432)
OKLCHoklch(82.29% 0.147 102.2)
XYZxyz(50.1126, 56.3645, 14.1998)
Luminance0.5636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C847 #4757D8
analogous
#D88047 #D8C847 #A0D847
triadic
#D8C847 #47D8C8 #C847D8
tetradic
#D8C847 #47D880 #4757D8 #D847A0
square
#D8C847 #47D880 #4757D8 #D847A0
split-complementary
#D8C847 #47A0D8 #8047D8
monochromatic
#887C1D #BAAA27 #D8C847 #E3D779 #EDE6AC

Accessibility & contrast

On white

1.71
#D8C847 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D8C847 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C847
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C847#FFFFFF#000000##000000
##D8C8471.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC235
Deuteranopia (green-blind)
#DFC94F
Tritanopia (blue-blind)
#E8BAAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d8c847;
/* rgb */ color: rgb(216, 200, 71);
/* oklch */ color: oklch(82.3% 0.147 102.2);
Tailwind
colors: {
  custom: {
    50: '#e8d881',
    500: '#d8c847',
    950: '#000000',
  },
}
SCSS
$custom: #d8c847;
$custom-light: #e8d881;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c847",
  "rgb": {
    "r": 216,
    "g": 200,
    "b": 71
  },
  "hsl": {
    "h": 53.379,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.82293,
    "c": 0.14652,
    "h": 102.2
  },
  "luminance": 0.56362
}

Semantic roles & 50–950 ramp

primary
#D8C847
secondary
#353F8E
accent
#52E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C847

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

Preview Lab → · Contrast checker → · Palette generator →

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