#D7D962#D7D962

#D7D962 is a very light, vivid yellow. Relative luminance 0.650; OKLCH L 86.0% C 0.142 H 109.9°. Best body text is #000000 at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#D7D962
RGBrgb(215, 217, 98)
HSLhsl(61, 61%, 62%)
HSVhsv(61, 55%, 85%)
CMYKcmyk(0.9%, 0%, 54.8%, 14.9%)
CIE-LABlab(84.46, -16.26, 57.31)
CIE-LCHlch(84.46, 59.57, 105.84°)
OKLaboklab(86.04% -0.0483 0.1332)
OKLCHoklch(86.04% 0.142 109.9)
XYZxyz(55.0432, 64.9560, 21.1911)
Luminance0.6495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D962 #6462D9
analogous
#D99F62 #D7D962 #9CD962
triadic
#D7D962 #62D7D9 #D962D7
tetradic
#D7D962 #62D99F #6462D9 #D9629C
square
#D7D962 #62D99F #6462D9 #D9629C
split-complementary
#D7D962 #629CD9 #9F62D9
monochromatic
#999B26 #CACC31 #D7D962 #E4E593 #F0F1C5

Accessibility & contrast

On white

1.50
#D7D962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.99
#D7D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D962
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D962#FFFFFF#000000##000000
##D7D9621.001.5013.9913.99
#FFFFFF1.501.0021.0021.00
#00000013.9921.001.001.00
##00000013.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#EAD569
Tritanopia (blue-blind)
#E4CDBF
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d7d962;
/* rgb */ color: rgb(215, 217, 98);
/* oklch */ color: oklch(86.0% 0.142 109.9);
Tailwind
colors: {
  custom: {
    50: '#e6e492',
    500: '#d7d962',
    950: '#000000',
  },
}
SCSS
$custom: #d7d962;
$custom-light: #e6e492;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d962",
  "rgb": {
    "r": 215,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 61.008,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.86041,
    "c": 0.14166,
    "h": 109.9
  },
  "luminance": 0.64955
}

Semantic roles & 50–950 ramp

primary
#D7D962
secondary
#42409F
accent
#1DC920
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D7D962

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

Preview Lab → · Contrast checker → · Palette generator →

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