#E2C431#E2C431

#E2C431 is a very light, vivid yellow. Relative luminance 0.559; OKLCH L 82.2% C 0.157 H 96.8°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#E2C431
RGBrgb(226, 196, 49)
HSLhsl(50, 75%, 54%)
HSVhsv(50, 78%, 89%)
CMYKcmyk(0%, 13.3%, 78.3%, 11.4%)
CIE-LABlab(79.54, -3.77, 71.67)
CIE-LCHlch(79.54, 71.77, 93.01°)
OKLaboklab(82.24% -0.0185 0.1555)
OKLCHoklch(82.24% 0.157 96.8)
XYZxyz(51.6611, 55.8732, 10.9686)
Luminance0.5587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C431 #314FE2
analogous
#E26C31 #E2C431 #A7E231
triadic
#E2C431 #31E2C4 #C431E2
tetradic
#E2C431 #31E26C #314FE2 #E231A7
square
#E2C431 #31E26C #314FE2 #E231A7
split-complementary
#E2C431 #31A7E2 #6C31E2
monochromatic
#867213 #BBA01A #E2C431 #EAD367 #F1E39C

Accessibility & contrast

On white

1.72
#E2C431 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#E2C431 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C431
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C431#FFFFFF#000000##000000
##E2C4311.001.7212.1712.17
#FFFFFF1.721.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C009
Deuteranopia (green-blind)
#E0C93C
Tritanopia (blue-blind)
#F4B4A9
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #e2c431;
/* rgb */ color: rgb(226, 196, 49);
/* oklch */ color: oklch(82.2% 0.157 96.8);
Tailwind
colors: {
  custom: {
    50: '#f0d576',
    500: '#e2c431',
    950: '#000000',
  },
}
SCSS
$custom: #e2c431;
$custom-light: #f0d576;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c431",
  "rgb": {
    "r": 226,
    "g": 196,
    "b": 49
  },
  "hsl": {
    "h": 49.831,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82241,
    "c": 0.15664,
    "h": 96.8
  },
  "luminance": 0.5587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E2C431

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

Preview Lab → · Contrast checker → · Palette generator →

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