#E2E797#E2E797

#E2E797 is a very light, moderate yellow. Relative luminance 0.756; OKLCH L 90.6% C 0.102 H 111.3°. Best body text is #000000 at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#E2E797
RGBrgb(226, 231, 151)
HSLhsl(64, 63%, 75%)
HSVhsv(64, 35%, 91%)
CMYKcmyk(2.2%, 0%, 34.6%, 9.4%)
CIE-LABlab(89.65, -13.70, 38.44)
CIE-LCHlch(89.65, 40.81, 109.61°)
OKLaboklab(90.6% -0.037 0.0948)
OKLCHoklch(90.6% 0.102 111.3)
XYZxyz(65.5263, 75.5559, 40.4040)
Luminance0.7556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2E797 #9C97E7
analogous
#E7C497 #E2E797 #BAE797
triadic
#E2E797 #97E2E7 #E797E2
tetradic
#E2E797 #97E7C4 #9C97E7 #E797BA
square
#E2E797 #97E7C4 #9C97E7 #E797BA
split-complementary
#E2E797 #97BAE7 #C497E7
monochromatic
#C6D034 #D4DC65 #E2E797 #F0F2C9 #F8F9E6

Accessibility & contrast

On white

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

On black

16.11
#E2E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2E797
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2E797#FFFFFF#000000##000000
##E2E7971.001.3016.1116.11
#FFFFFF1.301.0021.0021.00
#00000016.1121.001.001.00
##00000016.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3E091
Deuteranopia (green-blind)
#F3E39A
Tritanopia (blue-blind)
#ECDED3
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #e2e797;
/* rgb */ color: rgb(226, 231, 151);
/* oklch */ color: oklch(90.6% 0.102 111.3);
Tailwind
colors: {
  custom: {
    50: '#eceeb6',
    500: '#e2e797',
    950: '#000000',
  },
}
SCSS
$custom: #e2e797;
$custom-light: #eceeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#e2e797",
  "rgb": {
    "r": 226,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 63.75,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.90598,
    "c": 0.10172,
    "h": 111.3
  },
  "luminance": 0.75555
}

Semantic roles & 50–950 ramp

primary
#E2E797
secondary
#6761C1
accent
#1BCA26
background
#FFFFFD
surface
#FEFEF8
border
#D6D6D1
text
#161611
muted
#858581

Preview Lab

Preview with #E2E797

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

Preview Lab → · Contrast checker → · Palette generator →

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