#D8D052#D8D052

#D8D052 is a very light, vivid yellow. Relative luminance 0.603; OKLCH L 84.1% C 0.146 H 105.7°. Best body text is #000000 at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#D8D052
RGBrgb(216, 208, 82)
HSLhsl(56, 63%, 58%)
HSVhsv(56, 62%, 85%)
CMYKcmyk(0%, 3.7%, 62%, 15.3%)
CIE-LABlab(82.01, -12.49, 61.58)
CIE-LCHlch(82.01, 62.83, 101.46°)
OKLaboklab(84.06% -0.0393 0.1402)
OKLCHoklch(84.06% 0.146 105.7)
XYZxyz(52.3996, 60.3217, 16.8641)
Luminance0.6032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D052 #525AD8
analogous
#D88D52 #D8D052 #9DD852
triadic
#D8D052 #52D8D0 #D052D8
tetradic
#D8D052 #52D88D #525AD8 #D8529D
square
#D8D052 #52D88D #525AD8 #D8529D
split-complementary
#D8D052 #529DD8 #8D52D8
monochromatic
#8F8920 #C1B82C #D8D052 #E3DE84 #EFEBB6

Accessibility & contrast

On white

1.61
#D8D052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.06
#D8D052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D052
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D052#FFFFFF#000000##000000
##D8D0521.001.6113.0613.06
#FFFFFF1.611.0021.0021.00
#00000013.0621.001.001.00
##00000013.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E4CE59
Tritanopia (blue-blind)
#E7C3B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d8d052;
/* rgb */ color: rgb(216, 208, 82);
/* oklch */ color: oklch(84.1% 0.146 105.7);
Tailwind
colors: {
  custom: {
    50: '#e7de88',
    500: '#d8d052',
    950: '#000000',
  },
}
SCSS
$custom: #d8d052;
$custom-light: #e7de88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d052",
  "rgb": {
    "r": 216,
    "g": 208,
    "b": 82
  },
  "hsl": {
    "h": 56.418,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.84064,
    "c": 0.14565,
    "h": 105.7
  },
  "luminance": 0.6032
}

Semantic roles & 50–950 ramp

primary
#D8D052
secondary
#393F95
accent
#4BE642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D052

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

Preview Lab → · Contrast checker → · Palette generator →

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