#D7E962#D7E962

#D7E962 is a very light, vivid yellow. Relative luminance 0.736; OKLCH L 89.5% C 0.160 H 116.1°. Best body text is #000000 at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#D7E962
RGBrgb(215, 233, 98)
HSLhsl(68, 75%, 65%)
HSVhsv(68, 58%, 91%)
CMYKcmyk(7.7%, 0%, 57.9%, 8.6%)
CIE-LABlab(88.74, -24.04, 62.11)
CIE-LCHlch(88.74, 66.60, 111.16°)
OKLaboklab(89.46% -0.0703 0.1434)
OKLCHoklch(89.46% 0.16 116.1)
XYZxyz(59.3690, 73.6075, 22.6330)
Luminance0.7361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7E962 #7462E9
analogous
#E9B862 #D7E962 #94E962
triadic
#D7E962 #62D7E9 #E962D7
tetradic
#D7E962 #62E9B8 #7462E9 #E96294
square
#D7E962 #62E9B8 #7462E9 #E96294
split-complementary
#D7E962 #6294E9 #B862E9
monochromatic
#A2B71A #C9E12C #D7E962 #E5F198 #F2F8CD

Accessibility & contrast

On white

1.34
#D7E962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.72
#D7E962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7E962
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7E962#FFFFFF#000000##000000
##D7E9621.001.3415.7215.72
#FFFFFF1.341.0021.0021.00
#00000015.7221.001.001.00
##00000015.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8DE53
Deuteranopia (green-blind)
#F6E06A
Tritanopia (blue-blind)
#E3DDCC
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #d7e962;
/* rgb */ color: rgb(215, 233, 98);
/* oklch */ color: oklch(89.5% 0.160 116.1);
Tailwind
colors: {
  custom: {
    50: '#e6f093',
    500: '#d7e962',
    950: '#000000',
  },
}
SCSS
$custom: #d7e962;
$custom-light: #e6f093;
$custom-dark: #000000;
JSON
{
  "hex": "#d7e962",
  "rgb": {
    "r": 215,
    "g": 233,
    "b": 98
  },
  "hsl": {
    "h": 68,
    "s": 75.419,
    "l": 64.902
  },
  "oklch": {
    "l": 0.8946,
    "c": 0.15973,
    "h": 116.1
  },
  "luminance": 0.73607
}

Semantic roles & 50–950 ramp

primary
#D7E962
secondary
#4938B7
accent
#0ED829
background
#FEFFFC
surface
#FDFEF4
border
#D5D6CE
text
#16160D
muted
#84857F

Preview Lab

Preview with #D7E962

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

Preview Lab → · Contrast checker → · Palette generator →

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