#E2D271#E2D271

#E2D271 is a very light, moderate yellow. Relative luminance 0.635; OKLCH L 85.7% C 0.120 H 100.1°. Best body text is #000000 at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#E2D271
RGBrgb(226, 210, 113)
HSLhsl(52, 66%, 66%)
HSVhsv(52, 50%, 89%)
CMYKcmyk(0%, 7.1%, 50%, 11.4%)
CIE-LABlab(83.68, -7.05, 49.65)
CIE-LCHlch(83.68, 50.15, 98.08°)
OKLaboklab(85.69% -0.021 0.1179)
OKLCHoklch(85.69% 0.12 100.1)
XYZxyz(57.3930, 63.4562, 24.8447)
Luminance0.6345 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D271 #7181E2
analogous
#E29A71 #E2D271 #BAE271
triadic
#E2D271 #71E2D2 #D271E2
tetradic
#E2D271 #71E29A #7181E2 #E271BA
square
#E2D271 #71E29A #7181E2 #E271BA
split-complementary
#E2D271 #71BAE2 #9A71E2
monochromatic
#B4A025 #D8C23E #E2D271 #ECE2A4 #F7F2D7

Accessibility & contrast

On white

1.53
#E2D271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.69
#E2D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D271
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D271#FFFFFF#000000##000000
##E2D2711.001.5313.6913.69
#FFFFFF1.531.0021.0021.00
#00000013.6921.001.001.00
##00000013.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e2d271;
/* rgb */ color: rgb(226, 210, 113);
/* oklch */ color: oklch(85.7% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#eddf9c',
    500: '#e2d271',
    950: '#000000',
  },
}
SCSS
$custom: #e2d271;
$custom-light: #eddf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d271",
  "rgb": {
    "r": 226,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 51.504,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.8569,
    "c": 0.11972,
    "h": 100.1
  },
  "luminance": 0.63454
}

Semantic roles & 50–950 ramp

primary
#E2D271
secondary
#4253B5
accent
#31CE18
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E2D271

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

Preview Lab → · Contrast checker → · Palette generator →

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