#E7D962#E7D962

#E7D962 is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.4% C 0.140 H 102.6°. Best body text is #000000 at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#E7D962
RGBrgb(231, 217, 98)
HSLhsl(54, 73%, 65%)
HSVhsv(54, 58%, 91%)
CMYKcmyk(0%, 6.1%, 57.6%, 9.4%)
CIE-LABlab(85.76, -9.74, 59.12)
CIE-LCHlch(85.76, 59.91, 99.36°)
OKLaboklab(87.39% -0.0307 0.1367)
OKLCHoklch(87.39% 0.14 102.6)
XYZxyz(59.9745, 67.4987, 21.4223)
Luminance0.6750 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D962 #6270E7
analogous
#E79762 #E7D962 #B3E762
triadic
#E7D962 #62E7D9 #D962E7
tetradic
#E7D962 #62E797 #6270E7 #E762B3
square
#E7D962 #62E797 #6270E7 #E762B3
split-complementary
#E7D962 #62B3E7 #9762E7
monochromatic
#B3A31B #DFCC2D #E7D962 #EFE697 #F7F3CC

Accessibility & contrast

On white

1.45
#E7D962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.50
#E7D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D962
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D962#FFFFFF#000000##000000
##E7D9621.001.4514.5014.50
#FFFFFF1.451.0021.0021.00
#00000014.5021.001.001.00
##00000014.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD356
Deuteranopia (green-blind)
#EFD968
Tritanopia (blue-blind)
#F7CCBF
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e7d962;
/* rgb */ color: rgb(231, 217, 98);
/* oklch */ color: oklch(87.4% 0.140 102.6);
Tailwind
colors: {
  custom: {
    50: '#f1e493',
    500: '#e7d962',
    950: '#000000',
  },
}
SCSS
$custom: #e7d962;
$custom-light: #f1e493;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d962",
  "rgb": {
    "r": 231,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 53.684,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.87385,
    "c": 0.14014,
    "h": 102.6
  },
  "luminance": 0.67496
}

Semantic roles & 50–950 ramp

primary
#E7D962
secondary
#3A46B4
accent
#25D610
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E7D962

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

Preview Lab → · Contrast checker → · Palette generator →

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