#D8C352#D8C352

#D8C352 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.4% C 0.134 H 98.8°. Best body text is #000000 at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#D8C352
RGBrgb(216, 195, 82)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 62%, 85%)
CMYKcmyk(0%, 9.7%, 62%, 15.3%)
CIE-LABlab(78.60, -5.87, 57.90)
CIE-LCHlch(78.60, 58.19, 95.79°)
OKLaboklab(81.35% -0.0205 0.1324)
OKLCHoklch(81.35% 0.134 98.8)
XYZxyz(49.3590, 54.2405, 15.8505)
Luminance0.5424 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C352 #5267D8
analogous
#D88052 #D8C352 #AAD852
triadic
#D8C352 #52D8C3 #C352D8
tetradic
#D8C352 #52D880 #5267D8 #D852AA
square
#D8C352 #52D880 #5267D8 #D852AA
split-complementary
#D8C352 #52AAD8 #8052D8
monochromatic
#8F7E20 #C1AA2C #D8C352 #E3D484 #EFE6B6

Accessibility & contrast

On white

1.77
#D8C352 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.85
#D8C352 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C352
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C352#FFFFFF#000000##000000
##D8C3521.001.7711.8511.85
#FFFFFF1.771.0021.0021.00
#00000011.8521.001.001.00
##00000011.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE45
Deuteranopia (green-blind)
#DAC658
Tritanopia (blue-blind)
#E8B6AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d8c352;
/* rgb */ color: rgb(216, 195, 82);
/* oklch */ color: oklch(81.4% 0.134 98.8);
Tailwind
colors: {
  custom: {
    50: '#e7d487',
    500: '#d8c352',
    950: '#000000',
  },
}
SCSS
$custom: #d8c352;
$custom-light: #e7d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c352",
  "rgb": {
    "r": 216,
    "g": 195,
    "b": 82
  },
  "hsl": {
    "h": 50.597,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81354,
    "c": 0.134,
    "h": 98.8
  },
  "luminance": 0.54238
}

Semantic roles & 50–950 ramp

primary
#D8C352
secondary
#394895
accent
#5BE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C352

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

Preview Lab → · Contrast checker → · Palette generator →

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