#E4D271#E4D271

#E4D271 is a very light, moderate yellow. Relative luminance 0.638; OKLCH L 85.9% C 0.120 H 99.0°. Best body text is #000000 at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#E4D271
RGBrgb(228, 210, 113)
HSLhsl(51, 68%, 67%)
HSVhsv(51, 50%, 89%)
CMYKcmyk(0%, 7.9%, 50.4%, 10.6%)
CIE-LABlab(83.85, -6.24, 49.90)
CIE-LCHlch(83.85, 50.28, 97.13°)
OKLaboklab(85.87% -0.0188 0.1184)
OKLCHoklch(85.87% 0.12 99)
XYZxyz(58.0239, 63.7816, 24.8742)
Luminance0.6378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4D271 #7183E4
analogous
#E49971 #E4D271 #BCE471
triadic
#E4D271 #71E4D2 #D271E4
tetradic
#E4D271 #71E499 #7183E4 #E471BC
square
#E4D271 #71E499 #7183E4 #E471BC
split-complementary
#E4D271 #71BCE4 #9971E4
monochromatic
#B8A023 #DAC23E #E4D271 #EEE2A4 #F8F3D8

Accessibility & contrast

On white

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

On black

13.76
#E4D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4D271
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4D271#FFFFFF#000000##000000
##E4D2711.001.5313.7613.76
#FFFFFF1.531.0021.0021.00
#00000013.7621.001.001.00
##00000013.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e4d271;
/* rgb */ color: rgb(228, 210, 113);
/* oklch */ color: oklch(85.9% 0.120 99.0);
Tailwind
colors: {
  custom: {
    50: '#efdf9c',
    500: '#e4d271',
    950: '#000000',
  },
}
SCSS
$custom: #e4d271;
$custom-light: #efdf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e4d271",
  "rgb": {
    "r": 228,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 50.609,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.85866,
    "c": 0.11985,
    "h": 99
  },
  "luminance": 0.63779
}

Semantic roles & 50–950 ramp

primary
#E4D271
secondary
#4154B8
accent
#33D016
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E4D271

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

Preview Lab → · Contrast checker → · Palette generator →

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