#D8C047#D8C047

#D8C047 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.140 H 97.9°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D8C047
RGBrgb(216, 192, 71)
HSLhsl(50, 65%, 56%)
HSVhsv(50, 67%, 85%)
CMYKcmyk(0%, 11.1%, 67.1%, 15.3%)
CIE-LABlab(77.73, -4.99, 61.63)
CIE-LCHlch(77.73, 61.84, 94.63°)
OKLaboklab(80.64% -0.0192 0.1387)
OKLCHoklch(80.64% 0.14 97.9)
XYZxyz(48.3081, 52.7555, 13.5983)
Luminance0.5275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C047 #475FD8
analogous
#D87847 #D8C047 #A8D847
triadic
#D8C047 #47D8C0 #C047D8
tetradic
#D8C047 #47D878 #475FD8 #D847A8
square
#D8C047 #47D878 #475FD8 #D847A8
split-complementary
#D8C047 #47A8D8 #7847D8
monochromatic
#88761D #BAA227 #D8C047 #E3D179 #EDE3AC

Accessibility & contrast

On white

1.82
#D8C047 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#D8C047 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C047
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C047#FFFFFF#000000##000000
##D8C0471.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB37
Deuteranopia (green-blind)
#D9C44E
Tritanopia (blue-blind)
#E8B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c047;
/* rgb */ color: rgb(216, 192, 71);
/* oklch */ color: oklch(80.6% 0.140 97.9);
Tailwind
colors: {
  custom: {
    50: '#e8d280',
    500: '#d8c047',
    950: '#000000',
  },
}
SCSS
$custom: #d8c047;
$custom-light: #e8d280;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c047",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 50.069,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80635,
    "c": 0.14,
    "h": 97.9
  },
  "luminance": 0.52753
}

Semantic roles & 50–950 ramp

primary
#D8C047
secondary
#35448E
accent
#5CE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C047

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

Preview Lab → · Contrast checker → · Palette generator →

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