#E5D271#E5D271

#E5D271 is a very light, moderate yellow. Relative luminance 0.639; OKLCH L 86.0% C 0.120 H 98.5°. Best body text is #000000 at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#E5D271
RGBrgb(229, 210, 113)
HSLhsl(50, 69%, 67%)
HSVhsv(50, 51%, 90%)
CMYKcmyk(0%, 8.3%, 50.7%, 10.2%)
CIE-LABlab(83.94, -5.83, 50.02)
CIE-LCHlch(83.94, 50.36, 96.65°)
OKLaboklab(85.95% -0.0177 0.1186)
OKLCHoklch(85.95% 0.12 98.5)
XYZxyz(58.3422, 63.9457, 24.8891)
Luminance0.6394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E5D271 #7184E5
analogous
#E59871 #E5D271 #BEE571
triadic
#E5D271 #71E5D2 #D271E5
tetradic
#E5D271 #71E598 #7184E5 #E571BE
square
#E5D271 #71E598 #7184E5 #E571BE
split-complementary
#E5D271 #71BEE5 #9871E5
monochromatic
#BAA122 #DCC23D #E5D271 #EEE2A5 #F8F3D8

Accessibility & contrast

On white

1.52
#E5D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.79
#E5D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E5D271
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E5D271#FFFFFF#000000##000000
##E5D2711.001.5213.7913.79
#FFFFFF1.521.0021.0021.00
#00000013.7921.001.001.00
##00000013.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CD68
Deuteranopia (green-blind)
#E8D475
Tritanopia (blue-blind)
#F4C6BB
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #e5d271;
/* rgb */ color: rgb(229, 210, 113);
/* oklch */ color: oklch(86.0% 0.120 98.5);
Tailwind
colors: {
  custom: {
    50: '#efdf9c',
    500: '#e5d271',
    950: '#000000',
  },
}
SCSS
$custom: #e5d271;
$custom-light: #efdf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e5d271",
  "rgb": {
    "r": 229,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 50.172,
    "s": 69.048,
    "l": 67.059
  },
  "oklch": {
    "l": 0.85954,
    "c": 0.11993,
    "h": 98.5
  },
  "luminance": 0.63943
}

Semantic roles & 50–950 ramp

primary
#E5D271
secondary
#4154BA
accent
#33D114
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E5D271

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

Preview Lab → · Contrast checker → · Palette generator →

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