#E8D162#E8D162

#E8D162 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.8% C 0.133 H 97.7°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#E8D162
RGBrgb(232, 209, 98)
HSLhsl(50, 74%, 65%)
HSVhsv(50, 58%, 91%)
CMYKcmyk(0%, 9.9%, 57.8%, 9%)
CIE-LABlab(83.78, -5.29, 56.91)
CIE-LCHlch(83.78, 57.15, 95.31°)
OKLaboklab(85.84% -0.0179 0.132)
OKLCHoklch(85.84% 0.133 97.7)
XYZxyz(58.2860, 63.6411, 20.7667)
Luminance0.6364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E8D162 #6279E8
analogous
#E88E62 #E8D162 #BCE862
triadic
#E8D162 #62E8D1 #D162E8
tetradic
#E8D162 #62E88E #6279E8 #E862BC
square
#E8D162 #62E88E #6279E8 #E862BC
split-complementary
#E8D162 #62BCE8 #8E62E8
monochromatic
#B59B1B #E0C12D #E8D162 #F0E197 #F8F0CD

Accessibility & contrast

On white

1.53
#E8D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.73
#E8D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E8D162
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E8D162#FFFFFF#000000##000000
##E8D1621.001.5313.7313.73
#FFFFFF1.531.0021.0021.00
#00000013.7321.001.001.00
##00000013.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CC57
Deuteranopia (green-blind)
#E9D467
Tritanopia (blue-blind)
#F8C3B8
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #e8d162;
/* rgb */ color: rgb(232, 209, 98);
/* oklch */ color: oklch(85.8% 0.133 97.7);
Tailwind
colors: {
  custom: {
    50: '#f2de92',
    500: '#e8d162',
    950: '#000000',
  },
}
SCSS
$custom: #e8d162;
$custom-light: #f2de92;
$custom-dark: #000000;
JSON
{
  "hex": "#e8d162",
  "rgb": {
    "r": 232,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 49.701,
    "s": 74.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.85838,
    "c": 0.1332,
    "h": 97.7
  },
  "luminance": 0.63639
}

Semantic roles & 50–950 ramp

primary
#E8D162
secondary
#394EB5
accent
#31D70F
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E8D162

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

Preview Lab → · Contrast checker → · Palette generator →

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