#D8CE52#D8CE52

#D8CE52 is a very light, vivid yellow. Relative luminance 0.594; OKLCH L 83.6% C 0.144 H 104.7°. Best body text is #000000 at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#D8CE52
RGBrgb(216, 206, 82)
HSLhsl(56, 63%, 58%)
HSVhsv(56, 62%, 85%)
CMYKcmyk(0%, 4.6%, 62%, 15.3%)
CIE-LABlab(81.48, -11.48, 61.02)
CIE-LCHlch(81.48, 62.09, 100.65°)
OKLaboklab(83.64% -0.0365 0.139)
OKLCHoklch(83.64% 0.144 104.7)
XYZxyz(51.9151, 59.3526, 16.7025)
Luminance0.5935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CE52 #525CD8
analogous
#D88B52 #D8CE52 #9FD852
triadic
#D8CE52 #52D8CE #CE52D8
tetradic
#D8CE52 #52D88B #525CD8 #D8529F
square
#D8CE52 #52D88B #525CD8 #D8529F
split-complementary
#D8CE52 #529FD8 #8B52D8
monochromatic
#8F8720 #C1B62C #D8CE52 #E3DC84 #EFEAB6

Accessibility & contrast

On white

1.63
#D8CE52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.87
#D8CE52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CE52
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CE52#FFFFFF#000000##000000
##D8CE521.001.6312.8712.87
#FFFFFF1.631.0021.0021.00
#00000012.8721.001.001.00
##00000012.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC743
Deuteranopia (green-blind)
#E2CD59
Tritanopia (blue-blind)
#E7C1B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d8ce52;
/* rgb */ color: rgb(216, 206, 82);
/* oklch */ color: oklch(83.6% 0.144 104.7);
Tailwind
colors: {
  custom: {
    50: '#e7dc88',
    500: '#d8ce52',
    950: '#000000',
  },
}
SCSS
$custom: #d8ce52;
$custom-light: #e7dc88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ce52",
  "rgb": {
    "r": 216,
    "g": 206,
    "b": 82
  },
  "hsl": {
    "h": 55.522,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83644,
    "c": 0.14375,
    "h": 104.7
  },
  "luminance": 0.59351
}

Semantic roles & 50–950 ramp

primary
#D8CE52
secondary
#394095
accent
#4EE642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CE52

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

Preview Lab → · Contrast checker → · Palette generator →

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