#E2CA31#E2CA31

#E2CA31 is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.5% C 0.161 H 99.7°. Best body text is #000000 at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#E2CA31
RGBrgb(226, 202, 49)
HSLhsl(52, 75%, 54%)
HSVhsv(52, 78%, 89%)
CMYKcmyk(0%, 10.6%, 78.3%, 11.4%)
CIE-LABlab(81.09, -6.84, 73.05)
CIE-LCHlch(81.09, 73.37, 95.35°)
OKLaboklab(83.47% -0.0272 0.1585)
OKLCHoklch(83.47% 0.161 99.7)
XYZxyz(53.0416, 58.6342, 11.4288)
Luminance0.5863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CA31 #3149E2
analogous
#E27231 #E2CA31 #A2E231
triadic
#E2CA31 #31E2CA #CA31E2
tetradic
#E2CA31 #31E272 #3149E2 #E231A2
square
#E2CA31 #31E272 #3149E2 #E231A2
split-complementary
#E2CA31 #31A2E2 #7231E2
monochromatic
#867613 #BBA61A #E2CA31 #EAD867 #F1E69C

Accessibility & contrast

On white

1.65
#E2CA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.73
#E2CA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CA31
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CA31#FFFFFF#000000##000000
##E2CA311.001.6512.7312.73
#FFFFFF1.651.0021.0021.00
#00000012.7321.001.001.00
##00000012.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC403
Deuteranopia (green-blind)
#E5CD3D
Tritanopia (blue-blind)
#F4BBAE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #e2ca31;
/* rgb */ color: rgb(226, 202, 49);
/* oklch */ color: oklch(83.5% 0.161 99.7);
Tailwind
colors: {
  custom: {
    50: '#f0d976',
    500: '#e2ca31',
    950: '#000000',
  },
}
SCSS
$custom: #e2ca31;
$custom-light: #f0d976;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ca31",
  "rgb": {
    "r": 226,
    "g": 202,
    "b": 49
  },
  "hsl": {
    "h": 51.864,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.83468,
    "c": 0.16084,
    "h": 99.7
  },
  "luminance": 0.58632
}

Semantic roles & 50–950 ramp

primary
#E2CA31
secondary
#2B388C
accent
#4FF236
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #E2CA31

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

Preview Lab → · Contrast checker → · Palette generator →

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