#E2C331#E2C331

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

Color values

HEX#E2C331
RGBrgb(226, 195, 49)
HSLhsl(49, 75%, 54%)
HSVhsv(49, 78%, 89%)
CMYKcmyk(0%, 13.7%, 78.3%, 11.4%)
CIE-LABlab(79.28, -3.25, 71.44)
CIE-LCHlch(79.28, 71.51, 92.61°)
OKLaboklab(82.04% -0.0171 0.1551)
OKLCHoklch(82.04% 0.156 96.3)
XYZxyz(51.4363, 55.4236, 10.8937)
Luminance0.5542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C331 #3150E2
analogous
#E26B31 #E2C331 #A8E231
triadic
#E2C331 #31E2C3 #C331E2
tetradic
#E2C331 #31E26B #3150E2 #E231A8
square
#E2C331 #31E26B #3150E2 #E231A8
split-complementary
#E2C331 #31A8E2 #6B31E2
monochromatic
#867213 #BB9F1A #E2C331 #EAD367 #F1E29C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2C331#FFFFFF#000000##000000
##E2C3311.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)
#D8BF0A
Deuteranopia (green-blind)
#E0C93B
Tritanopia (blue-blind)
#F4B3A8
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #e2c331;
/* rgb */ color: rgb(226, 195, 49);
/* oklch */ color: oklch(82.0% 0.156 96.3);
Tailwind
colors: {
  custom: {
    50: '#f0d475',
    500: '#e2c331',
    950: '#000000',
  },
}
SCSS
$custom: #e2c331;
$custom-light: #f0d475;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c331",
  "rgb": {
    "r": 226,
    "g": 195,
    "b": 49
  },
  "hsl": {
    "h": 49.492,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82037,
    "c": 0.15599,
    "h": 96.3
  },
  "luminance": 0.55421
}

Semantic roles & 50–950 ramp

primary
#E2C331
secondary
#2B3C8C
accent
#57F236
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #E2C331

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

Preview Lab → · Contrast checker → · Palette generator →

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