#E7D271#E7D271

#E7D271 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 86.1% C 0.120 H 97.4°. Best body text is #000000 at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#E7D271
RGBrgb(231, 210, 113)
HSLhsl(49, 71%, 67%)
HSVhsv(49, 51%, 91%)
CMYKcmyk(0%, 9.1%, 51.1%, 9.4%)
CIE-LABlab(84.11, -5.02, 50.27)
CIE-LCHlch(84.11, 50.52, 95.71°)
OKLaboklab(86.13% -0.0154 0.1191)
OKLCHoklch(86.13% 0.12 97.4)
XYZxyz(58.9842, 64.2767, 24.9192)
Luminance0.6427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D271 #7186E7
analogous
#E79771 #E7D271 #C1E771
triadic
#E7D271 #71E7D2 #D271E7
tetradic
#E7D271 #71E797 #7186E7 #E771C1
square
#E7D271 #71E797 #7186E7 #E771C1
split-complementary
#E7D271 #71C1E7 #9771E7
monochromatic
#BEA220 #DEC13D #E7D271 #F0E3A5 #F9F3DA

Accessibility & contrast

On white

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

On black

13.85
#E7D271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D271
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D271#FFFFFF#000000##000000
##E7D2711.001.5213.8513.85
#FFFFFF1.521.0021.0021.00
#00000013.8521.001.001.00
##00000013.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e7d271;
/* rgb */ color: rgb(231, 210, 113);
/* oklch */ color: oklch(86.1% 0.120 97.4);
Tailwind
colors: {
  custom: {
    50: '#f1df9c',
    500: '#e7d271',
    950: '#000000',
  },
}
SCSS
$custom: #e7d271;
$custom-light: #f1df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d271",
  "rgb": {
    "r": 231,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 49.322,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86131,
    "c": 0.12013,
    "h": 97.4
  },
  "luminance": 0.64274
}

Semantic roles & 50–950 ramp

primary
#E7D271
secondary
#3F56BD
accent
#35D312
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E7D271

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

Preview Lab → · Contrast checker → · Palette generator →

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