#E8E162#E8E162

#E8E162 is a very light, vivid yellow. Relative luminance 0.719; OKLCH L 89.1% C 0.148 H 106.1°. Best body text is #000000 at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#E8E162
RGBrgb(232, 225, 98)
HSLhsl(57, 74%, 65%)
HSVhsv(57, 58%, 91%)
CMYKcmyk(0%, 3%, 57.8%, 9%)
CIE-LABlab(87.92, -13.33, 61.55)
CIE-LCHlch(87.92, 62.98, 102.22°)
OKLaboklab(89.12% -0.0409 0.1419)
OKLCHoklch(89.12% 0.148 106.1)
XYZxyz(62.4105, 71.8901, 22.1415)
Luminance0.7189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8E162 #6269E8
analogous
#E89E62 #E8E162 #ACE862
triadic
#E8E162 #62E8E1 #E162E8
tetradic
#E8E162 #62E89E #6269E8 #E862AC
square
#E8E162 #62E89E #6269E8 #E862AC
split-complementary
#E8E162 #62ACE8 #9E62E8
monochromatic
#B5AD1B #E0D72D #E8E162 #F0EB97 #F8F5CD

Accessibility & contrast

On white

1.37
#E8E162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.38
#E8E162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8E162
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8E162#FFFFFF#000000##000000
##E8E1621.001.3715.3815.38
#FFFFFF1.371.0021.0021.00
#00000015.3821.001.001.00
##00000015.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D954
Deuteranopia (green-blind)
#F5DF69
Tritanopia (blue-blind)
#F7D4C5
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #e8e162;
/* rgb */ color: rgb(232, 225, 98);
/* oklch */ color: oklch(89.1% 0.148 106.1);
Tailwind
colors: {
  custom: {
    50: '#f2ea93',
    500: '#e8e162',
    950: '#000000',
  },
}
SCSS
$custom: #e8e162;
$custom-light: #f2ea93;
$custom-dark: #000000;
JSON
{
  "hex": "#e8e162",
  "rgb": {
    "r": 232,
    "g": 225,
    "b": 98
  },
  "hsl": {
    "h": 56.866,
    "s": 74.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.89122,
    "c": 0.14772,
    "h": 106.1
  },
  "luminance": 0.71888
}

Semantic roles & 50–950 ramp

primary
#E8E162
secondary
#3940B5
accent
#19D70F
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17160D
muted
#85847F

Preview Lab

Preview with #E8E162

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

Preview Lab → · Contrast checker → · Palette generator →

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