#E4C158#E4C158

#E4C158 is a very light, vivid yellow. Relative luminance 0.553; OKLCH L 82.1% C 0.129 H 90.8°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#E4C158
RGBrgb(228, 193, 88)
HSLhsl(45, 72%, 62%)
HSVhsv(45, 61%, 89%)
CMYKcmyk(0%, 15.4%, 61.4%, 10.6%)
CIE-LABlab(79.24, 0.59, 56.23)
CIE-LCHlch(79.24, 56.24, 89.40°)
OKLaboklab(82.13% -0.0019 0.1294)
OKLCHoklch(82.13% 0.129 90.8)
XYZxyz(52.8288, 55.3414, 17.1300)
Luminance0.5534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C158 #587BE4
analogous
#E47B58 #E4C158 #C1E458
triadic
#E4C158 #58E4C1 #C158E4
tetradic
#E4C158 #58E47B #587BE4 #E458C1
square
#E4C158 #58E47B #587BE4 #E458C1
split-complementary
#E4C158 #58C1E4 #7B58E4
monochromatic
#A7841B #DBAD23 #E4C158 #EDD58D #F5E8C1

Accessibility & contrast

On white

1.74
#E4C158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#E4C158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C158
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C158#FFFFFF#000000##000000
##E4C1581.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e4c158;
/* rgb */ color: rgb(228, 193, 88);
/* oklch */ color: oklch(82.1% 0.129 90.8);
Tailwind
colors: {
  custom: {
    50: '#f0d38b',
    500: '#e4c158',
    950: '#000000',
  },
}
SCSS
$custom: #e4c158;
$custom-light: #f0d38b;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c158",
  "rgb": {
    "r": 228,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 45,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.82132,
    "c": 0.1294,
    "h": 90.8
  },
  "luminance": 0.55338
}

Semantic roles & 50–950 ramp

primary
#E4C158
secondary
#3754A9
accent
#42D411
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E4C158

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

Preview Lab → · Contrast checker → · Palette generator →

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