#E8D978#E8D978

#E8D978 is a very light, moderate yellow. Relative luminance 0.681; OKLCH L 87.7% C 0.120 H 100.6°. Best body text is #000000 at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#E8D978
RGBrgb(232, 217, 120)
HSLhsl(52, 71%, 69%)
HSVhsv(52, 48%, 91%)
CMYKcmyk(0%, 6.5%, 48.3%, 9%)
CIE-LABlab(86.08, -7.56, 49.30)
CIE-LCHlch(86.08, 49.87, 98.72°)
OKLaboklab(87.74% -0.0221 0.1176)
OKLCHoklch(87.74% 0.12 100.6)
XYZxyz(61.4834, 68.1397, 27.6792)
Luminance0.6814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8D978 #7887E8
analogous
#E8A178 #E8D978 #BFE878
triadic
#E8D978 #78E8D9 #D978E8
tetradic
#E8D978 #78E8A1 #7887E8 #E878BF
square
#E8D978 #78E8A1 #7887E8 #E878BF
split-complementary
#E8D978 #78BFE8 #A178E8
monochromatic
#C4AE21 #DFCA44 #E8D978 #F1E8AC #FAF6E1

Accessibility & contrast

On white

1.44
#E8D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.63
#E8D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8D978
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8D978#FFFFFF#000000##000000
##E8D9781.001.4414.6314.63
#FFFFFF1.441.0021.0021.00
#00000014.6321.001.001.00
##00000014.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D470
Deuteranopia (green-blind)
#EDDA7C
Tritanopia (blue-blind)
#F7CDC2
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #e8d978;
/* rgb */ color: rgb(232, 217, 120);
/* oklch */ color: oklch(87.7% 0.120 100.6);
Tailwind
colors: {
  custom: {
    50: '#f1e4a1',
    500: '#e8d978',
    950: '#000000',
  },
}
SCSS
$custom: #e8d978;
$custom-light: #f1e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#e8d978",
  "rgb": {
    "r": 232,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 51.964,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.87736,
    "c": 0.11962,
    "h": 100.6
  },
  "luminance": 0.68138
}

Semantic roles & 50–950 ramp

primary
#E8D978
secondary
#4455C0
accent
#2CD313
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #E8D978

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

Preview Lab → · Contrast checker → · Palette generator →

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