#E2C157#E2C157

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

Color values

HEX#E2C157
RGBrgb(226, 193, 87)
HSLhsl(46, 71%, 61%)
HSVhsv(46, 62%, 89%)
CMYKcmyk(0%, 14.6%, 61.5%, 11.4%)
CIE-LABlab(79.04, -0.31, 56.42)
CIE-LCHlch(79.04, 56.42, 90.32°)
OKLaboklab(81.93% -0.0045 0.1297)
OKLCHoklch(81.93% 0.13 92)
XYZxyz(52.1567, 54.9996, 16.8837)
Luminance0.5500 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C157 #5778E2
analogous
#E27C57 #E2C157 #BEE257
triadic
#E2C157 #57E2C1 #C157E2
tetradic
#E2C157 #57E27C #5778E2 #E257BE
square
#E2C157 #57E27C #5778E2 #E257BE
split-complementary
#E2C157 #57BEE2 #7C57E2
monochromatic
#A3831C #D7AD25 #E2C157 #EBD48B #F4E8BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2C157#FFFFFF#000000##000000
##E2C1571.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)
#D4BE4C
Deuteranopia (green-blind)
#DCC85C
Tritanopia (blue-blind)
#F3B3AA
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #e2c157;
/* rgb */ color: rgb(226, 193, 87);
/* oklch */ color: oklch(81.9% 0.130 92.0);
Tailwind
colors: {
  custom: {
    50: '#eed38a',
    500: '#e2c157',
    950: '#000000',
  },
}
SCSS
$custom: #e2c157;
$custom-light: #eed38a;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c157",
  "rgb": {
    "r": 226,
    "g": 193,
    "b": 87
  },
  "hsl": {
    "h": 45.755,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.8193,
    "c": 0.12978,
    "h": 92
  },
  "luminance": 0.54997
}

Semantic roles & 50–950 ramp

primary
#E2C157
secondary
#3852A5
accent
#40D313
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2C157

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

Preview Lab → · Contrast checker → · Palette generator →

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