#D8C552#D8C552

#D8C552 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.8% C 0.136 H 99.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#D8C552
RGBrgb(216, 197, 82)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 62%, 85%)
CMYKcmyk(0%, 8.8%, 62%, 15.3%)
CIE-LABlab(79.12, -6.90, 58.46)
CIE-LCHlch(79.12, 58.87, 96.73°)
OKLaboklab(81.77% -0.0234 0.1336)
OKLCHoklch(81.77% 0.136 99.9)
XYZxyz(49.8102, 55.1428, 16.0009)
Luminance0.5514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C552 #5265D8
analogous
#D88252 #D8C552 #A8D852
triadic
#D8C552 #52D8C5 #C552D8
tetradic
#D8C552 #52D882 #5265D8 #D852A8
square
#D8C552 #52D882 #5265D8 #D852A8
split-complementary
#D8C552 #52A8D8 #8252D8
monochromatic
#8F8020 #C1AC2C #D8C552 #E3D684 #EFE6B6

Accessibility & contrast

On white

1.75
#D8C552 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#D8C552 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C552
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C552#FFFFFF#000000##000000
##D8C5521.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C045
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c552;
/* rgb */ color: rgb(216, 197, 82);
/* oklch */ color: oklch(81.8% 0.136 99.9);
Tailwind
colors: {
  custom: {
    50: '#e7d687',
    500: '#d8c552',
    950: '#000000',
  },
}
SCSS
$custom: #d8c552;
$custom-light: #e7d687;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c552",
  "rgb": {
    "r": 216,
    "g": 197,
    "b": 82
  },
  "hsl": {
    "h": 51.493,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81768,
    "c": 0.13567,
    "h": 99.9
  },
  "luminance": 0.55141
}

Semantic roles & 50–950 ramp

primary
#D8C552
secondary
#394695
accent
#59E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C552

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

Preview Lab → · Contrast checker → · Palette generator →

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