#E2CA56#E2CA56

#E2CA56 is a very light, vivid yellow. Relative luminance 0.591; OKLCH L 83.7% C 0.137 H 97.6°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#E2CA56
RGBrgb(226, 202, 86)
HSLhsl(50, 71%, 61%)
HSVhsv(50, 62%, 89%)
CMYKcmyk(0%, 10.6%, 61.9%, 11.4%)
CIE-LABlab(81.34, -5.02, 59.39)
CIE-LCHlch(81.34, 59.60, 94.83°)
OKLaboklab(83.74% -0.0182 0.1359)
OKLCHoklch(83.74% 0.137 97.6)
XYZxyz(54.1666, 59.0842, 17.3535)
Luminance0.5908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CA56 #566EE2
analogous
#E28456 #E2CA56 #B4E256
triadic
#E2CA56 #56E2CA #CA56E2
tetradic
#E2CA56 #56E284 #566EE2 #E256B4
square
#E2CA56 #56E284 #566EE2 #E256B4
split-complementary
#E2CA56 #56B4E2 #8456E2
monochromatic
#A28B1C #D6B825 #E2CA56 #EBDA8A #F4EBBE

Accessibility & contrast

On white

1.64
#E2CA56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#E2CA56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CA56
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CA56#FFFFFF#000000##000000
##E2CA561.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC549
Deuteranopia (green-blind)
#E3CE5C
Tritanopia (blue-blind)
#F3BCB1
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e2ca56;
/* rgb */ color: rgb(226, 202, 86);
/* oklch */ color: oklch(83.7% 0.137 97.6);
Tailwind
colors: {
  custom: {
    50: '#eed98a',
    500: '#e2ca56',
    950: '#000000',
  },
}
SCSS
$custom: #e2ca56;
$custom-light: #eed98a;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ca56",
  "rgb": {
    "r": 226,
    "g": 202,
    "b": 86
  },
  "hsl": {
    "h": 49.714,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.83743,
    "c": 0.1371,
    "h": 97.6
  },
  "luminance": 0.59082
}

Semantic roles & 50–950 ramp

primary
#E2CA56
secondary
#384AA5
accent
#34D313
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2CA56

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

Preview Lab → · Contrast checker → · Palette generator →

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