#D8D952#D8D952

#D8D952 is a very light, vivid yellow. Relative luminance 0.648; OKLCH L 86.0% C 0.155 H 109.7°. Best body text is #000000 at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#D8D952
RGBrgb(216, 217, 82)
HSLhsl(60, 64%, 59%)
HSVhsv(60, 62%, 85%)
CMYKcmyk(0.5%, 0%, 62.2%, 14.9%)
CIE-LABlab(84.40, -16.97, 64.12)
CIE-LCHlch(84.40, 66.33, 104.82°)
OKLaboklab(85.97% -0.052 0.1456)
OKLCHoklch(85.97% 0.155 109.7)
XYZxyz(54.6564, 64.8353, 17.6163)
Luminance0.6483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D952 #5352D9
analogous
#D99652 #D8D952 #94D952
triadic
#D8D952 #52D8D9 #D952D8
tetradic
#D8D952 #52D996 #5352D9 #D95294
square
#D8D952 #52D996 #5352D9 #D95294
split-complementary
#D8D952 #5294D9 #9652D9
monochromatic
#909120 #C2C32B #D8D952 #E3E484 #EFEFB6

Accessibility & contrast

On white

1.50
#D8D952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.97
#D8D952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D952
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D952#FFFFFF#000000##000000
##D8D9521.001.5013.9713.97
#FFFFFF1.501.0021.0021.00
#00000013.9721.001.001.00
##00000013.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D041
Deuteranopia (green-blind)
#EBD55B
Tritanopia (blue-blind)
#E6CCBD
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d8d952;
/* rgb */ color: rgb(216, 217, 82);
/* oklch */ color: oklch(86.0% 0.155 109.7);
Tailwind
colors: {
  custom: {
    50: '#e7e489',
    500: '#d8d952',
    950: '#000000',
  },
}
SCSS
$custom: #d8d952;
$custom-light: #e7e489;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d952",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 82
  },
  "hsl": {
    "h": 60.444,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.85966,
    "c": 0.15462,
    "h": 109.7
  },
  "luminance": 0.64834
}

Semantic roles & 50–950 ramp

primary
#D8D952
secondary
#3A3996
accent
#41E742
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D952

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

Preview Lab → · Contrast checker → · Palette generator →

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