#D8D562#D8D562

#D8D562 is a very light, vivid yellow. Relative luminance 0.631; OKLCH L 85.3% C 0.137 H 107.6°. Best body text is #000000 at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#D8D562
RGBrgb(216, 213, 98)
HSLhsl(58, 60%, 62%)
HSVhsv(58, 55%, 85%)
CMYKcmyk(0%, 1.4%, 54.6%, 15.3%)
CIE-LABlab(83.48, -13.86, 56.21)
CIE-LCHlch(83.48, 57.89, 103.85°)
OKLaboklab(85.28% -0.0415 0.1308)
OKLCHoklch(85.28% 0.137 107.6)
XYZxyz(54.3193, 63.0708, 20.8654)
Luminance0.6307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D562 #6265D8
analogous
#D89A62 #D8D562 #A0D862
triadic
#D8D562 #62D8D5 #D562D8
tetradic
#D8D562 #62D89A #6265D8 #D862A0
square
#D8D562 #62D89A #6265D8 #D862A0
split-complementary
#D8D562 #62A0D8 #9A62D8
monochromatic
#999726 #CAC732 #D8D562 #E4E293 #F0EFC4

Accessibility & contrast

On white

1.54
#D8D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.61
#D8D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D562
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D562#FFFFFF#000000##000000
##D8D5621.001.5413.6113.61
#FFFFFF1.541.0021.0021.00
#00000013.6121.001.001.00
##00000013.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CE56
Deuteranopia (green-blind)
#E7D268
Tritanopia (blue-blind)
#E6C9BC
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d8d562;
/* rgb */ color: rgb(216, 213, 98);
/* oklch */ color: oklch(85.3% 0.137 107.6);
Tailwind
colors: {
  custom: {
    50: '#e6e192',
    500: '#d8d562',
    950: '#000000',
  },
}
SCSS
$custom: #d8d562;
$custom-light: #e6e192;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d562",
  "rgb": {
    "r": 216,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 58.475,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85278,
    "c": 0.13724,
    "h": 107.6
  },
  "luminance": 0.63069
}

Semantic roles & 50–950 ramp

primary
#D8D562
secondary
#40439E
accent
#22C81E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D562

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

Preview Lab → · Contrast checker → · Palette generator →

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