#D8D962#D8D962

#D8D962 is a very light, vivid yellow. Relative luminance 0.651; OKLCH L 86.1% C 0.141 H 109.5°. Best body text is #000000 at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#D8D962
RGBrgb(216, 217, 98)
HSLhsl(61, 61%, 62%)
HSVhsv(61, 55%, 85%)
CMYKcmyk(0.5%, 0%, 54.8%, 14.9%)
CIE-LABlab(84.54, -15.85, 57.42)
CIE-LCHlch(84.54, 59.56, 105.43°)
OKLaboklab(86.12% -0.0472 0.1334)
OKLCHoklch(86.12% 0.142 109.5)
XYZxyz(55.3378, 65.1079, 21.2049)
Luminance0.6511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D962 #6362D9
analogous
#D99F62 #D8D962 #9DD962
triadic
#D8D962 #62D8D9 #D962D8
tetradic
#D8D962 #62D99F #6362D9 #D9629D
square
#D8D962 #62D99F #6362D9 #D9629D
split-complementary
#D8D962 #629DD9 #9F62D9
monochromatic
#9A9B26 #CBCC31 #D8D962 #E4E593 #F0F1C5

Accessibility & contrast

On white

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

On black

14.02
#D8D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D962
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D962#FFFFFF#000000##000000
##D8D9621.001.5014.0214.02
#FFFFFF1.501.0021.0021.00
#00000014.0221.001.001.00
##00000014.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#EAD569
Tritanopia (blue-blind)
#E5CDBF
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d8d962;
/* rgb */ color: rgb(216, 217, 98);
/* oklch */ color: oklch(86.1% 0.141 109.5);
Tailwind
colors: {
  custom: {
    50: '#e6e492',
    500: '#d8d962',
    950: '#000000',
  },
}
SCSS
$custom: #d8d962;
$custom-light: #e6e492;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d962",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 60.504,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.86123,
    "c": 0.1415,
    "h": 109.5
  },
  "luminance": 0.65106
}

Semantic roles & 50–950 ramp

primary
#D8D962
secondary
#41409F
accent
#1DC91E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D962

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

Preview Lab → · Contrast checker → · Palette generator →

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