#D8CC52#D8CC52

#D8CC52 is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 83.2% C 0.142 H 103.7°. Best body text is #000000 at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#D8CC52
RGBrgb(216, 204, 82)
HSLhsl(55, 63%, 58%)
HSVhsv(55, 62%, 85%)
CMYKcmyk(0%, 5.6%, 62%, 15.3%)
CIE-LABlab(80.96, -10.47, 60.45)
CIE-LCHlch(80.96, 61.35, 99.82°)
OKLaboklab(83.23% -0.0336 0.1378)
OKLCHoklch(83.23% 0.142 103.7)
XYZxyz(51.4367, 58.3958, 16.5431)
Luminance0.5839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC52 #525ED8
analogous
#D88952 #D8CC52 #A1D852
triadic
#D8CC52 #52D8CC #CC52D8
tetradic
#D8CC52 #52D889 #525ED8 #D852A1
square
#D8CC52 #52D889 #525ED8 #D852A1
split-complementary
#D8CC52 #52A1D8 #8952D8
monochromatic
#8F8520 #C1B42C #D8CC52 #E3DB84 #EFE9B6

Accessibility & contrast

On white

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

On black

12.68
#D8CC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC52
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC52#FFFFFF#000000##000000
##D8CC521.001.6612.6812.68
#FFFFFF1.661.0021.0021.00
#00000012.6821.001.001.00
##00000012.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC644
Deuteranopia (green-blind)
#E1CC59
Tritanopia (blue-blind)
#E7BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc52;
/* rgb */ color: rgb(216, 204, 82);
/* oklch */ color: oklch(83.2% 0.142 103.7);
Tailwind
colors: {
  custom: {
    50: '#e7db88',
    500: '#d8cc52',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc52;
$custom-light: #e7db88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc52",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 54.627,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83225,
    "c": 0.14188,
    "h": 103.7
  },
  "luminance": 0.58394
}

Semantic roles & 50–950 ramp

primary
#D8CC52
secondary
#394295
accent
#50E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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