#E5C151#E5C151

#E5C151 is a very light, vivid yellow. Relative luminance 0.554; OKLCH L 82.2% C 0.135 H 91.2°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#E5C151
RGBrgb(229, 193, 81)
HSLhsl(45, 74%, 61%)
HSVhsv(45, 65%, 90%)
CMYKcmyk(0%, 15.7%, 64.6%, 10.2%)
CIE-LABlab(79.27, 0.57, 59.40)
CIE-LCHlch(79.27, 59.40, 89.45°)
OKLaboklab(82.16% -0.0029 0.1351)
OKLCHoklch(82.16% 0.135 91.2)
XYZxyz(52.8709, 55.3950, 15.6905)
Luminance0.5539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E5C151 #5175E5
analogous
#E57751 #E5C151 #BFE551
triadic
#E5C151 #51E5C1 #C151E5
tetradic
#E5C151 #51E577 #5175E5 #E551BF
square
#E5C151 #51E577 #5175E5 #E551BF
split-complementary
#E5C151 #51BFE5 #7751E5
monochromatic
#A38118 #D8AC20 #E5C151 #EDD486 #F5E7BB

Accessibility & contrast

On white

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

On black

12.08
#E5C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E5C151
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E5C151#FFFFFF#000000##000000
##E5C1511.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e5c151;
/* rgb */ color: rgb(229, 193, 81);
/* oklch */ color: oklch(82.2% 0.135 91.2);
Tailwind
colors: {
  custom: {
    50: '#f1d387',
    500: '#e5c151',
    950: '#000000',
  },
}
SCSS
$custom: #e5c151;
$custom-light: #f1d387;
$custom-dark: #000000;
JSON
{
  "hex": "#e5c151",
  "rgb": {
    "r": 229,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 45.405,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.82158,
    "c": 0.13515,
    "h": 91.2
  },
  "luminance": 0.55392
}

Semantic roles & 50–950 ramp

primary
#E5C151
secondary
#3550A6
accent
#40D60F
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#17140B
muted
#85837E

Preview Lab

Preview with #E5C151

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

Preview Lab → · Contrast checker → · Palette generator →

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