#E2D997#E2D997

#E2D997 is a very light, moderate yellow. Relative luminance 0.680; OKLCH L 87.7% C 0.085 H 101.4°. Best body text is #000000 at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#E2D997
RGBrgb(226, 217, 151)
HSLhsl(53, 56%, 74%)
HSVhsv(53, 33%, 89%)
CMYKcmyk(0%, 4%, 33.2%, 11.4%)
CIE-LABlab(86.02, -6.67, 33.68)
CIE-LCHlch(86.02, 34.34, 101.20°)
OKLaboklab(87.72% -0.0168 0.0837)
OKLCHoklch(87.72% 0.085 101.4)
XYZxyz(61.7635, 68.0303, 39.1497)
Luminance0.6803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D997 #97A0E2
analogous
#E2B497 #E2D997 #C6E297
triadic
#E2D997 #97E2D9 #D997E2
tetradic
#E2D997 #97E2B4 #97A0E2 #E297C6
square
#E2D997 #97E2B4 #97A0E2 #E297C6
split-complementary
#E2D997 #97C6E2 #B497E2
monochromatic
#C7B638 #D5C867 #E2D997 #EFEAC7 #F8F6E7

Accessibility & contrast

On white

1.44
#E2D997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.61
#E2D997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D997
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D997#FFFFFF#000000##000000
##E2D9971.001.4414.6114.61
#FFFFFF1.441.0021.0021.00
#00000014.6121.001.001.00
##00000014.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D592
Deuteranopia (green-blind)
#E8D999
Tritanopia (blue-blind)
#EDD0C8
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e2d997;
/* rgb */ color: rgb(226, 217, 151);
/* oklch */ color: oklch(87.7% 0.085 101.4);
Tailwind
colors: {
  custom: {
    50: '#ece4b6',
    500: '#e2d997',
    950: '#000000',
  },
}
SCSS
$custom: #e2d997;
$custom-light: #ece4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d997",
  "rgb": {
    "r": 226,
    "g": 217,
    "b": 151
  },
  "hsl": {
    "h": 52.8,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.87717,
    "c": 0.08536,
    "h": 101.4
  },
  "luminance": 0.68029
}

Semantic roles & 50–950 ramp

primary
#E2D997
secondary
#626DBB
accent
#35C422
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#161511
muted
#858481

Preview Lab

Preview with #E2D997

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

Preview Lab → · Contrast checker → · Palette generator →

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