#D5D962#D5D962

#D5D962 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 85.9% C 0.142 H 110.8°. Best body text is #000000 at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#D5D962
RGBrgb(213, 217, 98)
HSLhsl(62, 61%, 62%)
HSVhsv(62, 55%, 85%)
CMYKcmyk(1.8%, 0%, 54.8%, 14.9%)
CIE-LABlab(84.31, -17.06, 57.09)
CIE-LCHlch(84.31, 59.58, 106.64°)
OKLaboklab(85.88% -0.0504 0.1328)
OKLCHoklch(85.88% 0.142 110.8)
XYZxyz(54.4594, 64.6549, 21.1637)
Luminance0.6465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D962 #6662D9
analogous
#D9A262 #D5D962 #9AD962
triadic
#D5D962 #62D5D9 #D962D5
tetradic
#D5D962 #62D9A2 #6662D9 #D9629A
square
#D5D962 #62D9A2 #6662D9 #D9629A
split-complementary
#D5D962 #629AD9 #A262D9
monochromatic
#979B26 #C7CC31 #D5D962 #E2E593 #EFF1C5

Accessibility & contrast

On white

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

On black

13.93
#D5D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D962
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D962#FFFFFF#000000##000000
##D5D9621.001.5113.9313.93
#FFFFFF1.511.0021.0021.00
#00000013.9321.001.001.00
##00000013.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D056
Deuteranopia (green-blind)
#E9D469
Tritanopia (blue-blind)
#E2CDBF
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d962;
/* rgb */ color: rgb(213, 217, 98);
/* oklch */ color: oklch(85.9% 0.142 110.8);
Tailwind
colors: {
  custom: {
    50: '#e4e492',
    500: '#d5d962',
    950: '#000000',
  },
}
SCSS
$custom: #d5d962;
$custom-light: #e4e492;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d962",
  "rgb": {
    "r": 213,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 62.017,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.85879,
    "c": 0.14201,
    "h": 110.8
  },
  "luminance": 0.64654
}

Semantic roles & 50–950 ramp

primary
#D5D962
secondary
#43409F
accent
#1DC923
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D5D962

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

Preview Lab → · Contrast checker → · Palette generator →

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