#E7D371#E7D371

#E7D371 is a very light, vivid yellow. Relative luminance 0.648; OKLCH L 86.3% C 0.121 H 98.0°. Best body text is #000000 at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#E7D371
RGBrgb(231, 211, 113)
HSLhsl(50, 71%, 67%)
HSVhsv(50, 51%, 91%)
CMYKcmyk(0%, 8.7%, 51.1%, 9.4%)
CIE-LABlab(84.37, -5.53, 50.57)
CIE-LCHlch(84.37, 50.88, 96.24°)
OKLaboklab(86.33% -0.0169 0.1198)
OKLCHoklch(86.33% 0.121 98)
XYZxyz(59.2318, 64.7720, 25.0018)
Luminance0.6477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D371 #7185E7
analogous
#E79871 #E7D371 #C0E771
triadic
#E7D371 #71E7D3 #D371E7
tetradic
#E7D371 #71E798 #7185E7 #E771C0
square
#E7D371 #71E798 #7185E7 #E771C0
split-complementary
#E7D371 #71C0E7 #9871E7
monochromatic
#BEA320 #DEC33D #E7D371 #F0E3A5 #F9F3DA

Accessibility & contrast

On white

1.50
#E7D371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.95
#E7D371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D371
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D371#FFFFFF#000000##000000
##E7D3711.001.5013.9513.95
#FFFFFF1.501.0021.0021.00
#00000013.9521.001.001.00
##00000013.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CE68
Deuteranopia (green-blind)
#E9D675
Tritanopia (blue-blind)
#F6C7BC
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #e7d371;
/* rgb */ color: rgb(231, 211, 113);
/* oklch */ color: oklch(86.3% 0.121 98.0);
Tailwind
colors: {
  custom: {
    50: '#f1e09c',
    500: '#e7d371',
    950: '#000000',
  },
}
SCSS
$custom: #e7d371;
$custom-light: #f1e09c;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d371",
  "rgb": {
    "r": 231,
    "g": 211,
    "b": 113
  },
  "hsl": {
    "h": 49.831,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.86334,
    "c": 0.121,
    "h": 98
  },
  "luminance": 0.6477
}

Semantic roles & 50–950 ramp

primary
#E7D371
secondary
#3F55BD
accent
#33D312
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #E7D371

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

Preview Lab → · Contrast checker → · Palette generator →

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