#E2D897#E2D897

#E2D897 is a very light, moderate yellow. Relative luminance 0.675; OKLCH L 87.5% C 0.084 H 100.5°. Best body text is #000000 at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#E2D897
RGBrgb(226, 216, 151)
HSLhsl(52, 56%, 74%)
HSVhsv(52, 33%, 89%)
CMYKcmyk(0%, 4.4%, 33.2%, 11.4%)
CIE-LABlab(85.76, -6.16, 33.34)
CIE-LCHlch(85.76, 33.91, 100.47°)
OKLaboklab(87.51% -0.0153 0.0829)
OKLCHoklch(87.51% 0.084 100.5)
XYZxyz(61.5065, 67.5163, 39.0641)
Luminance0.6752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D897 #97A1E2
analogous
#E2B397 #E2D897 #C7E297
triadic
#E2D897 #97E2D8 #D897E2
tetradic
#E2D897 #97E2B3 #97A1E2 #E297C7
square
#E2D897 #97E2B3 #97A1E2 #E297C7
split-complementary
#E2D897 #97C7E2 #B397E2
monochromatic
#C7B438 #D5C667 #E2D897 #EFEAC7 #F8F6E7

Accessibility & contrast

On white

1.45
#E2D897 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.50
#E2D897 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D897
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D897#FFFFFF#000000##000000
##E2D8971.001.4514.5014.50
#FFFFFF1.451.0021.0021.00
#00000014.5021.001.001.00
##00000014.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4D492
Deuteranopia (green-blind)
#E7D899
Tritanopia (blue-blind)
#EDCFC7
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e2d897;
/* rgb */ color: rgb(226, 216, 151);
/* oklch */ color: oklch(87.5% 0.084 100.5);
Tailwind
colors: {
  custom: {
    50: '#ece3b6',
    500: '#e2d897',
    950: '#000000',
  },
}
SCSS
$custom: #e2d897;
$custom-light: #ece3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d897",
  "rgb": {
    "r": 226,
    "g": 216,
    "b": 151
  },
  "hsl": {
    "h": 52,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.87513,
    "c": 0.0843,
    "h": 100.5
  },
  "luminance": 0.67515
}

Semantic roles & 50–950 ramp

primary
#E2D897
secondary
#626EBB
accent
#37C422
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#161511
muted
#858481

Preview Lab

Preview with #E2D897

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

Preview Lab → · Contrast checker → · Palette generator →

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