#D8D862#D8D862

#D8D862 is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 85.9% C 0.140 H 109.0°. Best body text is #000000 at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#D8D862
RGBrgb(216, 216, 98)
HSLhsl(60, 60%, 62%)
HSVhsv(60, 55%, 85%)
CMYKcmyk(0%, 0%, 54.6%, 15.3%)
CIE-LABlab(84.27, -15.36, 57.11)
CIE-LCHlch(84.27, 59.14, 105.05°)
OKLaboklab(85.91% -0.0458 0.1328)
OKLCHoklch(85.91% 0.14 109)
XYZxyz(55.0808, 64.5939, 21.1193)
Luminance0.6459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D862 #6262D8
analogous
#D89D62 #D8D862 #9DD862
triadic
#D8D862 #62D8D8 #D862D8
tetradic
#D8D862 #62D89D #6262D8 #D8629D
square
#D8D862 #62D89D #6262D8 #D8629D
split-complementary
#D8D862 #629DD8 #9D62D8
monochromatic
#999926 #CACA32 #D8D862 #E4E493 #F0F0C4

Accessibility & contrast

On white

1.51
#D8D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.92
#D8D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D862
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D862#FFFFFF#000000##000000
##D8D8621.001.5113.9213.92
#FFFFFF1.511.0021.0021.00
#00000013.9221.001.001.00
##00000013.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D056
Deuteranopia (green-blind)
#E9D468
Tritanopia (blue-blind)
#E6CCBE
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d862;
/* rgb */ color: rgb(216, 216, 98);
/* oklch */ color: oklch(85.9% 0.140 109.0);
Tailwind
colors: {
  custom: {
    50: '#e6e392',
    500: '#d8d862',
    950: '#000000',
  },
}
SCSS
$custom: #d8d862;
$custom-light: #e6e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d862",
  "rgb": {
    "r": 216,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 60,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85911,
    "c": 0.14042,
    "h": 109
  },
  "luminance": 0.64593
}

Semantic roles & 50–950 ramp

primary
#D8D862
secondary
#40409E
accent
#1EC81E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D862

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

Preview Lab → · Contrast checker → · Palette generator →

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