#E7D562#E7D562

#E7D562 is a very light, vivid yellow. Relative luminance 0.655; OKLCH L 86.6% C 0.137 H 100.5°. Best body text is #000000 at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#E7D562
RGBrgb(231, 213, 98)
HSLhsl(52, 73%, 65%)
HSVhsv(52, 58%, 91%)
CMYKcmyk(0%, 7.8%, 57.6%, 9.4%)
CIE-LABlab(84.72, -7.73, 57.95)
CIE-LCHlch(84.72, 58.46, 97.59°)
OKLaboklab(86.56% -0.0249 0.1343)
OKLCHoklch(86.56% 0.137 100.5)
XYZxyz(58.9560, 65.4616, 21.0828)
Luminance0.6546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D562 #6274E7
analogous
#E79362 #E7D562 #B6E762
triadic
#E7D562 #62E7D5 #D562E7
tetradic
#E7D562 #62E793 #6274E7 #E762B6
square
#E7D562 #62E793 #6274E7 #E762B6
split-complementary
#E7D562 #62B6E7 #9362E7
monochromatic
#B39F1B #DFC72D #E7D562 #EFE397 #F7F1CC

Accessibility & contrast

On white

1.49
#E7D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.09
#E7D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D562
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D562#FFFFFF#000000##000000
##E7D5621.001.4914.0914.09
#FFFFFF1.491.0021.0021.00
#00000014.0921.001.001.00
##00000014.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF56
Deuteranopia (green-blind)
#ECD768
Tritanopia (blue-blind)
#F7C8BC
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #e7d562;
/* rgb */ color: rgb(231, 213, 98);
/* oklch */ color: oklch(86.6% 0.137 100.5);
Tailwind
colors: {
  custom: {
    50: '#f1e192',
    500: '#e7d562',
    950: '#000000',
  },
}
SCSS
$custom: #e7d562;
$custom-light: #f1e192;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d562",
  "rgb": {
    "r": 231,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 51.88,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.86564,
    "c": 0.13654,
    "h": 100.5
  },
  "luminance": 0.65459
}

Semantic roles & 50–950 ramp

primary
#E7D562
secondary
#3A4AB4
accent
#2BD610
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E7D562

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

Preview Lab → · Contrast checker → · Palette generator →

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