#D8D762#D8D762

#D8D762 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.7% C 0.139 H 108.6°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#D8D762
RGBrgb(216, 215, 98)
HSLhsl(59, 60%, 62%)
HSVhsv(59, 55%, 85%)
CMYKcmyk(0%, 0.5%, 54.6%, 15.3%)
CIE-LABlab(84.01, -14.86, 56.81)
CIE-LCHlch(84.01, 58.72, 104.66°)
OKLaboklab(85.7% -0.0444 0.1321)
OKLCHoklch(85.7% 0.139 108.6)
XYZxyz(54.8254, 64.0831, 21.0341)
Luminance0.6408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D762 #6263D8
analogous
#D89C62 #D8D762 #9ED862
triadic
#D8D762 #62D8D7 #D762D8
tetradic
#D8D762 #62D89C #6263D8 #D8629E
square
#D8D762 #62D89C #6263D8 #D8629E
split-complementary
#D8D762 #629ED8 #9C62D8
monochromatic
#999926 #CAC932 #D8D762 #E4E393 #F0F0C4

Accessibility & contrast

On white

1.52
#D8D762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.82
#D8D762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D762
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D762#FFFFFF#000000##000000
##D8D7621.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CF56
Deuteranopia (green-blind)
#E8D468
Tritanopia (blue-blind)
#E6CBBD
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d8d762;
/* rgb */ color: rgb(216, 215, 98);
/* oklch */ color: oklch(85.7% 0.139 108.6);
Tailwind
colors: {
  custom: {
    50: '#e6e392',
    500: '#d8d762',
    950: '#000000',
  },
}
SCSS
$custom: #d8d762;
$custom-light: #e6e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d762",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 98
  },
  "hsl": {
    "h": 59.492,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.857,
    "c": 0.13936,
    "h": 108.6
  },
  "luminance": 0.64082
}

Semantic roles & 50–950 ramp

primary
#D8D762
secondary
#40419E
accent
#1FC81E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D762

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

Preview Lab → · Contrast checker → · Palette generator →

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