#E7DF97#E7DF97

#E7DF97 is a very light, moderate yellow. Relative luminance 0.720; OKLCH L 89.4% C 0.092 H 102.7°. Best body text is #000000 at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#E7DF97
RGBrgb(231, 223, 151)
HSLhsl(54, 63%, 75%)
HSVhsv(54, 35%, 91%)
CMYKcmyk(0%, 3.5%, 34.6%, 9.4%)
CIE-LABlab(87.97, -7.78, 36.32)
CIE-LCHlch(87.97, 37.14, 102.10°)
OKLaboklab(89.36% -0.0202 0.0898)
OKLCHoklch(89.36% 0.092 102.7)
XYZxyz(64.9294, 72.0002, 39.7492)
Luminance0.7200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7DF97 #979FE7
analogous
#E7B797 #E7DF97 #C7E797
triadic
#E7DF97 #97E7DF #DF97E7
tetradic
#E7DF97 #97E7B7 #979FE7 #E797C7
square
#E7DF97 #97E7B7 #979FE7 #E797C7
split-complementary
#E7DF97 #97C7E7 #B797E7
monochromatic
#D0C034 #DCD065 #E7DF97 #F2EEC9 #F9F7E6

Accessibility & contrast

On white

1.36
#E7DF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.40
#E7DF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7DF97
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7DF97#FFFFFF#000000##000000
##E7DF971.001.3615.4015.40
#FFFFFF1.361.0021.0021.00
#00000015.4021.001.001.00
##00000015.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECDA92
Deuteranopia (green-blind)
#EEDF9A
Tritanopia (blue-blind)
#F2D6CD
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #e7df97;
/* rgb */ color: rgb(231, 223, 151);
/* oklch */ color: oklch(89.4% 0.092 102.7);
Tailwind
colors: {
  custom: {
    50: '#efe8b6',
    500: '#e7df97',
    950: '#000000',
  },
}
SCSS
$custom: #e7df97;
$custom-light: #efe8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#e7df97",
  "rgb": {
    "r": 231,
    "g": 223,
    "b": 151
  },
  "hsl": {
    "h": 54,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.89356,
    "c": 0.09206,
    "h": 102.7
  },
  "luminance": 0.71999
}

Semantic roles & 50–950 ramp

primary
#E7DF97
secondary
#616BC1
accent
#2DCA1B
background
#FFFEFD
surface
#FEFCF8
border
#D6D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #E7DF97

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

Preview Lab → · Contrast checker → · Palette generator →

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