#E7E271#E7E271

#E7E271 is a very light, vivid yellow. Relative luminance 0.726; OKLCH L 89.4% C 0.135 H 106.5°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#E7E271
RGBrgb(231, 226, 113)
HSLhsl(57, 71%, 67%)
HSVhsv(57, 51%, 91%)
CMYKcmyk(0%, 2.2%, 51.1%, 9.4%)
CIE-LABlab(88.25, -13.07, 55.17)
CIE-LCHlch(88.25, 56.70, 103.33°)
OKLaboklab(89.41% -0.0386 0.1298)
OKLCHoklch(89.41% 0.135 106.5)
XYZxyz(63.1336, 72.5757, 26.3024)
Luminance0.7257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E271 #7176E7
analogous
#E7A771 #E7E271 #B1E771
triadic
#E7E271 #71E7E2 #E271E7
tetradic
#E7E271 #71E7A7 #7176E7 #E771B1
square
#E7E271 #71E7A7 #7176E7 #E771B1
split-complementary
#E7E271 #71B1E7 #A771E7
monochromatic
#BEB720 #DED73D #E7E271 #F0EDA5 #F9F7DA

Accessibility & contrast

On white

1.35
#E7E271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.51
#E7E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E271
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E271#FFFFFF#000000##000000
##E7E2711.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DB66
Deuteranopia (green-blind)
#F5E077
Tritanopia (blue-blind)
#F5D6C8
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #e7e271;
/* rgb */ color: rgb(231, 226, 113);
/* oklch */ color: oklch(89.4% 0.135 106.5);
Tailwind
colors: {
  custom: {
    50: '#f1ea9d',
    500: '#e7e271',
    950: '#000000',
  },
}
SCSS
$custom: #e7e271;
$custom-light: #f1ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e271",
  "rgb": {
    "r": 231,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 57.458,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.89413,
    "c": 0.13545,
    "h": 106.5
  },
  "luminance": 0.72574
}

Semantic roles & 50–950 ramp

primary
#E7E271
secondary
#3F45BD
accent
#1BD312
background
#FFFEFC
surface
#FEFDF5
border
#D6D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #E7E271

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

Preview Lab → · Contrast checker → · Palette generator →

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