#E7D97E#E7D97E

#E7D97E is a very light, moderate yellow. Relative luminance 0.681; OKLCH L 87.7% C 0.113 H 100.7°. Best body text is #000000 at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#E7D97E
RGBrgb(231, 217, 126)
HSLhsl(52, 69%, 70%)
HSVhsv(52, 45%, 91%)
CMYKcmyk(0%, 6.1%, 45.5%, 9.4%)
CIE-LABlab(86.07, -7.40, 46.36)
CIE-LCHlch(86.07, 46.94, 99.07°)
OKLaboklab(87.73% -0.021 0.1115)
OKLCHoklch(87.73% 0.113 100.7)
XYZxyz(61.5353, 68.1230, 29.6422)
Luminance0.6812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D97E #7E8CE7
analogous
#E7A57E #E7D97E #C0E77E
triadic
#E7D97E #7EE7D9 #D97EE7
tetradic
#E7D97E #7EE7A5 #7E8CE7 #E77EC0
square
#E7D97E #7EE7A5 #7E8CE7 #E77EC0
split-complementary
#E7D97E #7EC0E7 #A57EE7
monochromatic
#C6B025 #DDCA4A #E7D97E #F1E8B2 #FAF7E5

Accessibility & contrast

On white

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

On black

14.62
#E7D97E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D97E
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D97E#FFFFFF#000000##000000
##E7D97E1.001.4414.6214.62
#FFFFFF1.441.0021.0021.00
#00000014.6221.001.001.00
##00000014.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D477
Deuteranopia (green-blind)
#EDDA82
Tritanopia (blue-blind)
#F5CEC3
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e7d97e;
/* rgb */ color: rgb(231, 217, 126);
/* oklch */ color: oklch(87.7% 0.113 100.7);
Tailwind
colors: {
  custom: {
    50: '#f0e4a5',
    500: '#e7d97e',
    950: '#000000',
  },
}
SCSS
$custom: #e7d97e;
$custom-light: #f0e4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d97e",
  "rgb": {
    "r": 231,
    "g": 217,
    "b": 126
  },
  "hsl": {
    "h": 52,
    "s": 68.627,
    "l": 70
  },
  "oklch": {
    "l": 0.87734,
    "c": 0.11343,
    "h": 100.7
  },
  "luminance": 0.68121
}

Semantic roles & 50–950 ramp

primary
#E7D97E
secondary
#4A59BF
accent
#2ED115
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #E7D97E

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

Preview Lab → · Contrast checker → · Palette generator →

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