#E2C158#E2C158

#E2C158 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.9% C 0.129 H 91.9°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#E2C158
RGBrgb(226, 193, 88)
HSLhsl(46, 70%, 62%)
HSVhsv(46, 61%, 89%)
CMYKcmyk(0%, 14.6%, 61.1%, 11.4%)
CIE-LABlab(79.05, -0.24, 55.97)
CIE-LCHlch(79.05, 55.97, 90.25°)
OKLaboklab(81.94% -0.0042 0.1289)
OKLCHoklch(81.94% 0.129 91.9)
XYZxyz(52.1979, 55.0160, 17.1004)
Luminance0.5501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C158 #5879E2
analogous
#E27C58 #E2C158 #BEE258
triadic
#E2C158 #58E2C1 #C158E2
tetradic
#E2C158 #58E27C #5879E2 #E258BE
square
#E2C158 #58E27C #5879E2 #E258BE
split-complementary
#E2C158 #58BEE2 #7C58E2
monochromatic
#A3831C #D7AD25 #E2C158 #EBD48C #F4E8C0

Accessibility & contrast

On white

1.75
#E2C158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#E2C158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C158
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C158#FFFFFF#000000##000000
##E2C1581.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE4D
Deuteranopia (green-blind)
#DCC85D
Tritanopia (blue-blind)
#F3B3AA
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #e2c158;
/* rgb */ color: rgb(226, 193, 88);
/* oklch */ color: oklch(81.9% 0.129 91.9);
Tailwind
colors: {
  custom: {
    50: '#eed38b',
    500: '#e2c158',
    950: '#000000',
  },
}
SCSS
$custom: #e2c158;
$custom-light: #eed38b;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c158",
  "rgb": {
    "r": 226,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 45.652,
    "s": 70.408,
    "l": 61.569
  },
  "oklch": {
    "l": 0.81941,
    "c": 0.12896,
    "h": 91.9
  },
  "luminance": 0.55013
}

Semantic roles & 50–950 ramp

primary
#E2C158
secondary
#3853A6
accent
#41D213
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2C158

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

Preview Lab → · Contrast checker → · Palette generator →

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