#D9D562#D9D562

#D9D562 is a very light, vivid yellow. Relative luminance 0.632; OKLCH L 85.4% C 0.137 H 107.1°. Best body text is #000000 at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#D9D562
RGBrgb(217, 213, 98)
HSLhsl(58, 61%, 62%)
HSVhsv(58, 55%, 85%)
CMYKcmyk(0%, 1.8%, 54.8%, 14.9%)
CIE-LABlab(83.56, -13.45, 56.32)
CIE-LCHlch(83.56, 57.91, 103.43°)
OKLaboklab(85.36% -0.0404 0.131)
OKLCHoklch(85.36% 0.137 107.1)
XYZxyz(54.6157, 63.2236, 20.8793)
Luminance0.6322 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D562 #6266D9
analogous
#D99A62 #D9D562 #A2D962
triadic
#D9D562 #62D9D5 #D562D9
tetradic
#D9D562 #62D99A #6266D9 #D962A2
square
#D9D562 #62D99A #6266D9 #D962A2
split-complementary
#D9D562 #62A2D9 #9A62D9
monochromatic
#9B9726 #CCC731 #D9D562 #E5E293 #F1EFC5

Accessibility & contrast

On white

1.54
#D9D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.64
#D9D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D562
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D562#FFFFFF#000000##000000
##D9D5621.001.5413.6413.64
#FFFFFF1.541.0021.0021.00
#00000013.6421.001.001.00
##00000013.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CE56
Deuteranopia (green-blind)
#E7D268
Tritanopia (blue-blind)
#E7C9BC
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d9d562;
/* rgb */ color: rgb(217, 213, 98);
/* oklch */ color: oklch(85.4% 0.137 107.1);
Tailwind
colors: {
  custom: {
    50: '#e7e192',
    500: '#d9d562',
    950: '#000000',
  },
}
SCSS
$custom: #d9d562;
$custom-light: #e7e192;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d562",
  "rgb": {
    "r": 217,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 57.983,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.85362,
    "c": 0.13713,
    "h": 107.1
  },
  "luminance": 0.63222
}

Semantic roles & 50–950 ramp

primary
#D9D562
secondary
#40439F
accent
#23C91D
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #D9D562

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

Preview Lab → · Contrast checker → · Palette generator →

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