#D8CD52#D8CD52

#D8CD52 is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.4% C 0.143 H 104.2°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#D8CD52
RGBrgb(216, 205, 82)
HSLhsl(55, 63%, 58%)
HSVhsv(55, 62%, 85%)
CMYKcmyk(0%, 5.1%, 62%, 15.3%)
CIE-LABlab(81.22, -10.97, 60.73)
CIE-LCHlch(81.22, 61.72, 100.24°)
OKLaboklab(83.43% -0.035 0.1384)
OKLCHoklch(83.43% 0.143 104.2)
XYZxyz(51.6751, 58.8726, 16.6226)
Luminance0.5887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD52 #525DD8
analogous
#D88A52 #D8CD52 #A0D852
triadic
#D8CD52 #52D8CD #CD52D8
tetradic
#D8CD52 #52D88A #525DD8 #D852A0
square
#D8CD52 #52D88A #525DD8 #D852A0
split-complementary
#D8CD52 #52A0D8 #8A52D8
monochromatic
#8F8620 #C1B52C #D8CD52 #E3DB84 #EFEAB6

Accessibility & contrast

On white

1.64
#D8CD52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#D8CD52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD52
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD52#FFFFFF#000000##000000
##D8CD521.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC643
Deuteranopia (green-blind)
#E2CC59
Tritanopia (blue-blind)
#E7C0B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8cd52;
/* rgb */ color: rgb(216, 205, 82);
/* oklch */ color: oklch(83.4% 0.143 104.2);
Tailwind
colors: {
  custom: {
    50: '#e7dc88',
    500: '#d8cd52',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd52;
$custom-light: #e7dc88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd52",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 82
  },
  "hsl": {
    "h": 55.075,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83434,
    "c": 0.14281,
    "h": 104.2
  },
  "luminance": 0.58871
}

Semantic roles & 50–950 ramp

primary
#D8CD52
secondary
#394195
accent
#4FE642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CD52

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

Preview Lab → · Contrast checker → · Palette generator →

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