#E8E271#E8E271

#E8E271 is a very light, vivid yellow. Relative luminance 0.727; OKLCH L 89.5% C 0.135 H 106.1°. Best body text is #000000 at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#E8E271
RGBrgb(232, 226, 113)
HSLhsl(57, 72%, 68%)
HSVhsv(57, 51%, 91%)
CMYKcmyk(0%, 2.6%, 51.3%, 9%)
CIE-LABlab(88.32, -12.67, 55.29)
CIE-LCHlch(88.32, 56.72, 102.91°)
OKLaboklab(89.5% -0.0375 0.1301)
OKLCHoklch(89.5% 0.135 106.1)
XYZxyz(63.4574, 72.7426, 26.3176)
Luminance0.7274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8E271 #7177E8
analogous
#E8A771 #E8E271 #B2E871
triadic
#E8E271 #71E8E2 #E271E8
tetradic
#E8E271 #71E8A7 #7177E8 #E871B2
square
#E8E271 #71E8A7 #7177E8 #E871B2
split-complementary
#E8E271 #71B2E8 #A771E8
monochromatic
#C0B71F #DFD73C #E8E271 #F1EDA6 #F9F8DA

Accessibility & contrast

On white

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

On black

15.55
#E8E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8E271
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8E271#FFFFFF#000000##000000
##E8E2711.001.3515.5515.55
#FFFFFF1.351.0021.0021.00
#00000015.5521.001.001.00
##00000015.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e8e271;
/* rgb */ color: rgb(232, 226, 113);
/* oklch */ color: oklch(89.5% 0.135 106.1);
Tailwind
colors: {
  custom: {
    50: '#f1ea9d',
    500: '#e8e271',
    950: '#000000',
  },
}
SCSS
$custom: #e8e271;
$custom-light: #f1ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e8e271",
  "rgb": {
    "r": 232,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 56.975,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.89496,
    "c": 0.13537,
    "h": 106.1
  },
  "luminance": 0.72741
}

Semantic roles & 50–950 ramp

primary
#E8E271
secondary
#3F45BF
accent
#1BD411
background
#FFFEFC
surface
#FEFDF5
border
#D6D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #E8E271

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

Preview Lab → · Contrast checker → · Palette generator →

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