#D8CC47#D8CC47

#D8CC47 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.150 H 104.1°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#D8CC47
RGBrgb(216, 204, 71)
HSLhsl(55, 65%, 56%)
HSVhsv(55, 67%, 85%)
CMYKcmyk(0%, 5.6%, 67.1%, 15.3%)
CIE-LABlab(80.87, -11.12, 64.86)
CIE-LCHlch(80.87, 65.81, 99.73°)
OKLaboklab(83.13% -0.0366 0.1455)
OKLCHoklch(83.13% 0.15 104.1)
XYZxyz(51.0511, 58.2416, 14.5126)
Luminance0.5824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC47 #4753D8
analogous
#D88447 #D8CC47 #9CD847
triadic
#D8CC47 #47D8CC #CC47D8
tetradic
#D8CC47 #47D884 #4753D8 #D8479C
square
#D8CC47 #47D884 #4753D8 #D8479C
split-complementary
#D8CC47 #479CD8 #8447D8
monochromatic
#887F1D #BAAE27 #D8CC47 #E3DA79 #EDE8AC

Accessibility & contrast

On white

1.66
#D8CC47 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#D8CC47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC47
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC47#FFFFFF#000000##000000
##D8CC471.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC534
Deuteranopia (green-blind)
#E2CC4F
Tritanopia (blue-blind)
#E8BEB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc47;
/* rgb */ color: rgb(216, 204, 71);
/* oklch */ color: oklch(83.1% 0.150 104.1);
Tailwind
colors: {
  custom: {
    50: '#e7db81',
    500: '#d8cc47',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc47;
$custom-light: #e7db81;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc47",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 71
  },
  "hsl": {
    "h": 55.034,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8313,
    "c": 0.15004,
    "h": 104.1
  },
  "luminance": 0.5824
}

Semantic roles & 50–950 ramp

primary
#D8CC47
secondary
#353D8E
accent
#4EE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8CC47

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

Preview Lab → · Contrast checker → · Palette generator →

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