#E4E797#E4E797

#E4E797 is a very light, moderate yellow. Relative luminance 0.759; OKLCH L 90.8% C 0.101 H 110.1°. Best body text is #000000 at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#E4E797
RGBrgb(228, 231, 151)
HSLhsl(62, 63%, 75%)
HSVhsv(62, 35%, 91%)
CMYKcmyk(1.3%, 0%, 34.6%, 9.4%)
CIE-LABlab(89.80, -12.94, 38.67)
CIE-LCHlch(89.80, 40.77, 108.50°)
OKLaboklab(90.76% -0.0348 0.0953)
OKLCHoklch(90.76% 0.101 110.1)
XYZxyz(66.1573, 75.8812, 40.4336)
Luminance0.7588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4E797 #9A97E7
analogous
#E7C297 #E4E797 #BCE797
triadic
#E4E797 #97E4E7 #E797E4
tetradic
#E4E797 #97E7C2 #9A97E7 #E797BC
square
#E4E797 #97E7C2 #9A97E7 #E797BC
split-complementary
#E4E797 #97BCE7 #C297E7
monochromatic
#CAD034 #D7DC65 #E4E797 #F1F2C9 #F9F9E6

Accessibility & contrast

On white

1.30
#E4E797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.18
#E4E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4E797
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4E797#FFFFFF#000000##000000
##E4E7971.001.3016.1816.18
#FFFFFF1.301.0021.0021.00
#00000016.1821.001.001.00
##00000016.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3E091
Deuteranopia (green-blind)
#F4E39A
Tritanopia (blue-blind)
#EEDED3
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #e4e797;
/* rgb */ color: rgb(228, 231, 151);
/* oklch */ color: oklch(90.8% 0.101 110.1);
Tailwind
colors: {
  custom: {
    50: '#edeeb6',
    500: '#e4e797',
    950: '#000000',
  },
}
SCSS
$custom: #e4e797;
$custom-light: #edeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#e4e797",
  "rgb": {
    "r": 228,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 62.25,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.90755,
    "c": 0.10145,
    "h": 110.1
  },
  "luminance": 0.7588
}

Semantic roles & 50–950 ramp

primary
#E4E797
secondary
#6561C1
accent
#1BCA22
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#161611
muted
#858581

Preview Lab

Preview with #E4E797

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

Preview Lab → · Contrast checker → · Palette generator →

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