#E2CA57#E2CA57

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

Color values

HEX#E2CA57
RGBrgb(226, 202, 87)
HSLhsl(50, 71%, 61%)
HSVhsv(50, 62%, 89%)
CMYKcmyk(0%, 10.6%, 61.5%, 11.4%)
CIE-LABlab(81.35, -4.95, 58.96)
CIE-LCHlch(81.35, 59.17, 94.80°)
OKLaboklab(83.75% -0.0179 0.1351)
OKLCHoklch(83.75% 0.136 97.5)
XYZxyz(54.2071, 59.1004, 17.5672)
Luminance0.5910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CA57 #576FE2
analogous
#E28557 #E2CA57 #B5E257
triadic
#E2CA57 #57E2CA #CA57E2
tetradic
#E2CA57 #57E285 #576FE2 #E257B5
square
#E2CA57 #57E285 #576FE2 #E257B5
split-complementary
#E2CA57 #57B5E2 #8557E2
monochromatic
#A38B1C #D7B825 #E2CA57 #EBDA8B #F4EBBF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2CA57#FFFFFF#000000##000000
##E2CA571.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)
#DCC54A
Deuteranopia (green-blind)
#E3CE5D
Tritanopia (blue-blind)
#F3BCB1
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e2ca57;
/* rgb */ color: rgb(226, 202, 87);
/* oklch */ color: oklch(83.8% 0.136 97.5);
Tailwind
colors: {
  custom: {
    50: '#eed98b',
    500: '#e2ca57',
    950: '#000000',
  },
}
SCSS
$custom: #e2ca57;
$custom-light: #eed98b;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ca57",
  "rgb": {
    "r": 226,
    "g": 202,
    "b": 87
  },
  "hsl": {
    "h": 49.64,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.83753,
    "c": 0.1363,
    "h": 97.5
  },
  "luminance": 0.59098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E2CA57

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

Preview Lab → · Contrast checker → · Palette generator →

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