#E8D271#E8D271

#E8D271 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 86.2% C 0.120 H 96.8°. Best body text is #000000 at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#E8D271
RGBrgb(232, 210, 113)
HSLhsl(49, 72%, 68%)
HSVhsv(49, 51%, 91%)
CMYKcmyk(0%, 9.5%, 51.3%, 9%)
CIE-LABlab(84.20, -4.62, 50.39)
CIE-LCHlch(84.20, 50.60, 95.24°)
OKLaboklab(86.22% -0.0143 0.1194)
OKLCHoklch(86.22% 0.12 96.8)
XYZxyz(59.3079, 64.4436, 24.9344)
Luminance0.6444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8D271 #7187E8
analogous
#E89771 #E8D271 #C2E871
triadic
#E8D271 #71E8D2 #D271E8
tetradic
#E8D271 #71E897 #7187E8 #E871C2
square
#E8D271 #71E897 #7187E8 #E871C2
split-complementary
#E8D271 #71C2E8 #9771E8
monochromatic
#C0A21F #DFC13C #E8D271 #F1E3A6 #F9F3DA

Accessibility & contrast

On white

1.51
#E8D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.89
#E8D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8D271
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8D271#FFFFFF#000000##000000
##E8D2711.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CE68
Deuteranopia (green-blind)
#E9D575
Tritanopia (blue-blind)
#F7C5BB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #e8d271;
/* rgb */ color: rgb(232, 210, 113);
/* oklch */ color: oklch(86.2% 0.120 96.8);
Tailwind
colors: {
  custom: {
    50: '#f2df9c',
    500: '#e8d271',
    950: '#000000',
  },
}
SCSS
$custom: #e8d271;
$custom-light: #f2df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e8d271",
  "rgb": {
    "r": 232,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 48.908,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.8622,
    "c": 0.12025,
    "h": 96.8
  },
  "luminance": 0.64441
}

Semantic roles & 50–950 ramp

primary
#E8D271
secondary
#3F56BF
accent
#35D411
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E8D271

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

Preview Lab → · Contrast checker → · Palette generator →

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