#E7E371#E7E371

#E7E371 is a very light, vivid yellow. Relative luminance 0.731; OKLCH L 89.6% C 0.136 H 107.0°. Best body text is #000000 at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#E7E371
RGBrgb(231, 227, 113)
HSLhsl(58, 71%, 67%)
HSVhsv(58, 51%, 91%)
CMYKcmyk(0%, 1.7%, 51.1%, 9.4%)
CIE-LABlab(88.51, -13.57, 55.48)
CIE-LCHlch(88.51, 57.11, 103.74°)
OKLaboklab(89.62% -0.04 0.1305)
OKLCHoklch(89.62% 0.136 107)
XYZxyz(63.4064, 73.1211, 26.3933)
Luminance0.7312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E371 #7175E7
analogous
#E7A871 #E7E371 #B0E771
triadic
#E7E371 #71E7E3 #E371E7
tetradic
#E7E371 #71E7A8 #7175E7 #E771B0
square
#E7E371 #71E7A8 #7175E7 #E771B0
split-complementary
#E7E371 #71B0E7 #A871E7
monochromatic
#BEB820 #DED93D #E7E371 #F0EDA5 #F9F8DA

Accessibility & contrast

On white

1.34
#E7E371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.62
#E7E371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E371
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E371#FFFFFF#000000##000000
##E7E3711.001.3415.6215.62
#FFFFFF1.341.0021.0021.00
#00000015.6221.001.001.00
##00000015.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DB66
Deuteranopia (green-blind)
#F5E077
Tritanopia (blue-blind)
#F5D7C9
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #e7e371;
/* rgb */ color: rgb(231, 227, 113);
/* oklch */ color: oklch(89.6% 0.136 107.0);
Tailwind
colors: {
  custom: {
    50: '#f1eb9d',
    500: '#e7e371',
    950: '#000000',
  },
}
SCSS
$custom: #e7e371;
$custom-light: #f1eb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e371",
  "rgb": {
    "r": 231,
    "g": 227,
    "b": 113
  },
  "hsl": {
    "h": 57.966,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.8962,
    "c": 0.13649,
    "h": 107
  },
  "luminance": 0.73119
}

Semantic roles & 50–950 ramp

primary
#E7E371
secondary
#3F44BD
accent
#19D312
background
#FFFEFC
surface
#FEFDF5
border
#D6D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #E7E371

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

Preview Lab → · Contrast checker → · Palette generator →

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