#D5C962#D5C962

#D5C962 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.5% C 0.125 H 102.7°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#D5C962
RGBrgb(213, 201, 98)
HSLhsl(54, 58%, 61%)
HSVhsv(54, 54%, 84%)
CMYKcmyk(0%, 5.6%, 54%, 16.5%)
CIE-LABlab(80.07, -9.03, 52.22)
CIE-LCHlch(80.07, 53.00, 99.81°)
OKLaboklab(82.51% -0.0275 0.1223)
OKLCHoklch(82.51% 0.125 102.7)
XYZxyz(50.5334, 56.8030, 19.8551)
Luminance0.5680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C962 #626ED5
analogous
#D58F62 #D5C962 #A7D562
triadic
#D5C962 #62D5C9 #C962D5
tetradic
#D5C962 #62D58F #626ED5 #D562A7
square
#D5C962 #62D58F #626ED5 #D562A7
split-complementary
#D5C962 #62A7D5 #8F62D5
monochromatic
#958928 #C5B635 #D5C962 #E2DA92 #EFEAC3

Accessibility & contrast

On white

1.70
#D5C962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#D5C962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C962
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C962#FFFFFF#000000##000000
##D5C9621.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C358
Deuteranopia (green-blind)
#DCC967
Tritanopia (blue-blind)
#E3BDB2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d5c962;
/* rgb */ color: rgb(213, 201, 98);
/* oklch */ color: oklch(82.5% 0.125 102.7);
Tailwind
colors: {
  custom: {
    50: '#e4d991',
    500: '#d5c962',
    950: '#000000',
  },
}
SCSS
$custom: #d5c962;
$custom-light: #e4d991;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c962",
  "rgb": {
    "r": 213,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 53.739,
    "s": 57.789,
    "l": 60.98
  },
  "oklch": {
    "l": 0.82506,
    "c": 0.12534,
    "h": 102.7
  },
  "luminance": 0.56801
}

Semantic roles & 50–950 ramp

primary
#D5C962
secondary
#414B9A
accent
#31C520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D5C962

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

Preview Lab → · Contrast checker → · Palette generator →

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