#E2D97F#E2D97F

#E2D97F is a very light, moderate yellow. Relative luminance 0.673; OKLCH L 87.3% C 0.112 H 103.4°. Best body text is #000000 at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#E2D97F
RGBrgb(226, 217, 127)
HSLhsl(55, 63%, 69%)
HSVhsv(55, 44%, 89%)
CMYKcmyk(0%, 4%, 43.8%, 11.4%)
CIE-LABlab(85.67, -9.29, 45.28)
CIE-LCHlch(85.67, 46.23, 101.60°)
OKLaboklab(87.32% -0.0261 0.1092)
OKLCHoklch(87.32% 0.112 103.4)
XYZxyz(60.0090, 67.3285, 29.9092)
Luminance0.6733 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D97F #7F88E2
analogous
#E2A87F #E2D97F #BAE27F
triadic
#E2D97F #7FE2D9 #D97FE2
tetradic
#E2D97F #7FE2A8 #7F88E2 #E27FBA
square
#E2D97F #7FE2A8 #7F88E2 #E27FBA
split-complementary
#E2D97F #7FBAE2 #A87FE2
monochromatic
#BCAF2B #D7CA4D #E2D97F #EDE8B1 #F9F7E3

Accessibility & contrast

On white

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

On black

14.47
#E2D97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D97F
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D97F#FFFFFF#000000##000000
##E2D97F1.001.4514.4714.47
#FFFFFF1.451.0021.0021.00
#00000014.4721.001.001.00
##00000014.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D378
Deuteranopia (green-blind)
#EBD883
Tritanopia (blue-blind)
#EFCEC3
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e2d97f;
/* rgb */ color: rgb(226, 217, 127);
/* oklch */ color: oklch(87.3% 0.112 103.4);
Tailwind
colors: {
  custom: {
    50: '#ede4a5',
    500: '#e2d97f',
    950: '#000000',
  },
}
SCSS
$custom: #e2d97f;
$custom-light: #ede4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d97f",
  "rgb": {
    "r": 226,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 54.545,
    "s": 63.057,
    "l": 69.216
  },
  "oklch": {
    "l": 0.87323,
    "c": 0.11227,
    "h": 103.4
  },
  "luminance": 0.67327
}

Semantic roles & 50–950 ramp

primary
#E2D97F
secondary
#4C56BA
accent
#2BCB1B
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#16150F
muted
#858480

Preview Lab

Preview with #E2D97F

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

Preview Lab → · Contrast checker → · Palette generator →

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