#D8D462#D8D462

#D8D462 is a very light, vivid yellow. Relative luminance 0.626; OKLCH L 85.1% C 0.136 H 107.1°. Best body text is #000000 at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#D8D462
RGBrgb(216, 212, 98)
HSLhsl(58, 60%, 62%)
HSVhsv(58, 55%, 85%)
CMYKcmyk(0%, 1.9%, 54.6%, 15.3%)
CIE-LABlab(83.22, -13.36, 55.91)
CIE-LCHlch(83.22, 57.48, 103.44°)
OKLaboklab(85.07% -0.0401 0.1302)
OKLCHoklch(85.07% 0.136 107.1)
XYZxyz(54.0685, 62.5693, 20.7818)
Luminance0.6257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D462 #6266D8
analogous
#D89962 #D8D462 #A1D862
triadic
#D8D462 #62D8D4 #D462D8
tetradic
#D8D462 #62D899 #6266D8 #D862A1
square
#D8D462 #62D899 #6266D8 #D862A1
split-complementary
#D8D462 #62A1D8 #9962D8
monochromatic
#999626 #CAC532 #D8D462 #E4E193 #F0EFC4

Accessibility & contrast

On white

1.55
#D8D462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.51
#D8D462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D462
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D462#FFFFFF#000000##000000
##D8D4621.001.5513.5113.51
#FFFFFF1.551.0021.0021.00
#00000013.5121.001.001.00
##00000013.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CD56
Deuteranopia (green-blind)
#E6D168
Tritanopia (blue-blind)
#E6C8BB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d8d462;
/* rgb */ color: rgb(216, 212, 98);
/* oklch */ color: oklch(85.1% 0.136 107.1);
Tailwind
colors: {
  custom: {
    50: '#e6e192',
    500: '#d8d462',
    950: '#000000',
  },
}
SCSS
$custom: #d8d462;
$custom-light: #e6e192;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d462",
  "rgb": {
    "r": 216,
    "g": 212,
    "b": 98
  },
  "hsl": {
    "h": 57.966,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85068,
    "c": 0.1362,
    "h": 107.1
  },
  "luminance": 0.62568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8D462

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

Preview Lab → · Contrast checker → · Palette generator →

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