#E2DF97#E2DF97

#E2DF97 is a very light, moderate yellow. Relative luminance 0.712; OKLCH L 88.9% C 0.092 H 106.1°. Best body text is #000000 at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#E2DF97
RGBrgb(226, 223, 151)
HSLhsl(58, 56%, 74%)
HSVhsv(58, 33%, 89%)
CMYKcmyk(0%, 1.3%, 33.2%, 11.4%)
CIE-LABlab(87.57, -9.70, 35.72)
CIE-LCHlch(87.57, 37.02, 105.20°)
OKLaboklab(88.95% -0.0255 0.0885)
OKLCHoklch(88.95% 0.092 106.1)
XYZxyz(63.3382, 71.1797, 39.6747)
Luminance0.7118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DF97 #979AE2
analogous
#E2BA97 #E2DF97 #C0E297
triadic
#E2DF97 #97E2DF #DF97E2
tetradic
#E2DF97 #97E2BA #979AE2 #E297C0
square
#E2DF97 #97E2BA #979AE2 #E297C0
split-complementary
#E2DF97 #97C0E2 #BA97E2
monochromatic
#C7C138 #D5D067 #E2DF97 #EFEEC7 #F8F8E7

Accessibility & contrast

On white

1.38
#E2DF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.24
#E2DF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DF97
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DF97#FFFFFF#000000##000000
##E2DF971.001.3815.2415.24
#FFFFFF1.381.0021.0021.00
#00000015.2421.001.001.00
##00000015.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBDA92
Deuteranopia (green-blind)
#EDDD9A
Tritanopia (blue-blind)
#EDD6CD
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #e2df97;
/* rgb */ color: rgb(226, 223, 151);
/* oklch */ color: oklch(88.9% 0.092 106.1);
Tailwind
colors: {
  custom: {
    50: '#ece8b6',
    500: '#e2df97',
    950: '#000000',
  },
}
SCSS
$custom: #e2df97;
$custom-light: #ece8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#e2df97",
  "rgb": {
    "r": 226,
    "g": 223,
    "b": 151
  },
  "hsl": {
    "h": 57.6,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.88946,
    "c": 0.09207,
    "h": 106.1
  },
  "luminance": 0.71178
}

Semantic roles & 50–950 ramp

primary
#E2DF97
secondary
#6266BB
accent
#28C422
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#161611
muted
#858481

Preview Lab

Preview with #E2DF97

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

Preview Lab → · Contrast checker → · Palette generator →

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