#D4D962#D4D962

#D4D962 is a very light, vivid yellow. Relative luminance 0.645; OKLCH L 85.8% C 0.142 H 111.3°. Best body text is #000000 at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#D4D962
RGBrgb(212, 217, 98)
HSLhsl(63, 61%, 62%)
HSVhsv(63, 55%, 85%)
CMYKcmyk(2.3%, 0%, 54.8%, 14.9%)
CIE-LABlab(84.23, -17.47, 56.98)
CIE-LCHlch(84.23, 59.60, 107.04°)
OKLaboklab(85.8% -0.0515 0.1325)
OKLCHoklch(85.8% 0.142 111.3)
XYZxyz(54.1701, 64.5058, 21.1502)
Luminance0.6451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D962 #6762D9
analogous
#D9A362 #D4D962 #99D962
triadic
#D4D962 #62D4D9 #D962D4
tetradic
#D4D962 #62D9A3 #6762D9 #D96299
square
#D4D962 #62D9A3 #6762D9 #D96299
split-complementary
#D4D962 #6299D9 #A362D9
monochromatic
#969B26 #C6CC31 #D4D962 #E1E593 #EFF1C5

Accessibility & contrast

On white

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

On black

13.90
#D4D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D962
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D962#FFFFFF#000000##000000
##D4D9621.001.5113.9013.90
#FFFFFF1.511.0021.0021.00
#00000013.9021.001.001.00
##00000013.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4d962;
/* rgb */ color: rgb(212, 217, 98);
/* oklch */ color: oklch(85.8% 0.142 111.3);
Tailwind
colors: {
  custom: {
    50: '#e4e492',
    500: '#d4d962',
    950: '#000000',
  },
}
SCSS
$custom: #d4d962;
$custom-light: #e4e492;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d962",
  "rgb": {
    "r": 212,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 62.521,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.85799,
    "c": 0.1422,
    "h": 111.3
  },
  "luminance": 0.64505
}

Semantic roles & 50–950 ramp

primary
#D4D962
secondary
#44409F
accent
#1DC924
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D4D962

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

Preview Lab → · Contrast checker → · Palette generator →

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