#E4C151#E4C151

#E4C151 is a very light, vivid yellow. Relative luminance 0.552; OKLCH L 82.1% C 0.135 H 91.7°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#E4C151
RGBrgb(228, 193, 81)
HSLhsl(46, 73%, 61%)
HSVhsv(46, 64%, 89%)
CMYKcmyk(0%, 15.4%, 64.5%, 10.6%)
CIE-LABlab(79.17, 0.15, 59.27)
CIE-LCHlch(79.17, 59.27, 89.86°)
OKLaboklab(82.06% -0.004 0.1349)
OKLCHoklch(82.06% 0.135 91.7)
XYZxyz(52.5527, 55.2309, 15.6756)
Luminance0.5523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C151 #5174E4
analogous
#E47751 #E4C151 #BEE451
triadic
#E4C151 #51E4C1 #C151E4
tetradic
#E4C151 #51E477 #5174E4 #E451BE
square
#E4C151 #51E477 #5174E4 #E451BE
split-complementary
#E4C151 #51BEE4 #7751E4
monochromatic
#A28119 #D7AB21 #E4C151 #ECD486 #F4E7BB

Accessibility & contrast

On white

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

On black

12.05
#E4C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C151
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C151#FFFFFF#000000##000000
##E4C1511.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE44
Deuteranopia (green-blind)
#DDC856
Tritanopia (blue-blind)
#F6B2A9
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #e4c151;
/* rgb */ color: rgb(228, 193, 81);
/* oklch */ color: oklch(82.1% 0.135 91.7);
Tailwind
colors: {
  custom: {
    50: '#f0d387',
    500: '#e4c151',
    950: '#000000',
  },
}
SCSS
$custom: #e4c151;
$custom-light: #f0d387;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c151",
  "rgb": {
    "r": 228,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 45.714,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.82062,
    "c": 0.13493,
    "h": 91.7
  },
  "luminance": 0.55228
}

Semantic roles & 50–950 ramp

primary
#E4C151
secondary
#354FA4
accent
#3FD510
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#17140B
muted
#85837E

Preview Lab

Preview with #E4C151

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

Preview Lab → · Contrast checker → · Palette generator →

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