#E7D981#E7D981

#E7D981 is a very light, moderate yellow. Relative luminance 0.682; OKLCH L 87.8% C 0.110 H 100.4°. Best body text is #000000 at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#E7D981
RGBrgb(231, 217, 129)
HSLhsl(52, 68%, 71%)
HSVhsv(52, 44%, 91%)
CMYKcmyk(0%, 6.1%, 44.2%, 9.4%)
CIE-LABlab(86.11, -7.11, 44.93)
CIE-LCHlch(86.11, 45.49, 98.99°)
OKLaboklab(87.78% -0.0199 0.1085)
OKLCHoklch(87.78% 0.11 100.4)
XYZxyz(61.7318, 68.2016, 30.6770)
Luminance0.6820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D981 #818FE7
analogous
#E7A681 #E7D981 #C2E781
triadic
#E7D981 #81E7D9 #D981E7
tetradic
#E7D981 #81E7A6 #818FE7 #E781C2
square
#E7D981 #81E7A6 #818FE7 #E781C2
split-complementary
#E7D981 #81C2E7 #A681E7
monochromatic
#C8B126 #DDC94E #E7D981 #F1E9B4 #FAF7E5

Accessibility & contrast

On white

1.43
#E7D981 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.64
#E7D981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D981
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D981#FFFFFF#000000##000000
##E7D9811.001.4314.6414.64
#FFFFFF1.431.0021.0021.00
#00000014.6421.001.001.00
##00000014.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D47A
Deuteranopia (green-blind)
#ECDA85
Tritanopia (blue-blind)
#F5CEC4
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e7d981;
/* rgb */ color: rgb(231, 217, 129);
/* oklch */ color: oklch(87.8% 0.110 100.4);
Tailwind
colors: {
  custom: {
    50: '#f0e4a7',
    500: '#e7d981',
    950: '#000000',
  },
}
SCSS
$custom: #e7d981;
$custom-light: #f0e4a7;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d981",
  "rgb": {
    "r": 231,
    "g": 217,
    "b": 129
  },
  "hsl": {
    "h": 51.765,
    "s": 68,
    "l": 70.588
  },
  "oklch": {
    "l": 0.87778,
    "c": 0.11029,
    "h": 100.4
  },
  "luminance": 0.682
}

Semantic roles & 50–950 ramp

primary
#E7D981
secondary
#4D5CC0
accent
#2FD016
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #E7D981

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

Preview Lab → · Contrast checker → · Palette generator →

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