#D8C052#D8C052

#D8C052 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.7% C 0.132 H 97.0°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#D8C052
RGBrgb(216, 192, 82)
HSLhsl(49, 63%, 58%)
HSVhsv(49, 62%, 85%)
CMYKcmyk(0%, 11.1%, 62%, 15.3%)
CIE-LABlab(77.82, -4.32, 57.04)
CIE-LCHlch(77.82, 57.21, 94.33°)
OKLaboklab(80.74% -0.016 0.1306)
OKLCHoklch(80.74% 0.132 97)
XYZxyz(48.6936, 52.9097, 15.6287)
Luminance0.5291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C052 #526AD8
analogous
#D87D52 #D8C052 #ADD852
triadic
#D8C052 #52D8C0 #C052D8
tetradic
#D8C052 #52D87D #526AD8 #D852AD
square
#D8C052 #52D87D #526AD8 #D852AD
split-complementary
#D8C052 #52ADD8 #7D52D8
monochromatic
#8F7B20 #C1A62C #D8C052 #E3D284 #EFE4B6

Accessibility & contrast

On white

1.81
#D8C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#D8C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C052
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C052#FFFFFF#000000##000000
##D8C0521.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E8B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c052;
/* rgb */ color: rgb(216, 192, 82);
/* oklch */ color: oklch(80.7% 0.132 97.0);
Tailwind
colors: {
  custom: {
    50: '#e7d287',
    500: '#d8c052',
    950: '#000000',
  },
}
SCSS
$custom: #d8c052;
$custom-light: #e7d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c052",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 49.254,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.80736,
    "c": 0.13159,
    "h": 97
  },
  "luminance": 0.52907
}

Semantic roles & 50–950 ramp

primary
#D8C052
secondary
#394A95
accent
#5FE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8C052

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

Preview Lab → · Contrast checker → · Palette generator →

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