#E7CA57#E7CA57

#E7CA57 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 84.2% C 0.137 H 95.1°. Best body text is #000000 at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#E7CA57
RGBrgb(231, 202, 87)
HSLhsl(48, 75%, 62%)
HSVhsv(48, 62%, 91%)
CMYKcmyk(0%, 12.6%, 62.3%, 9.4%)
CIE-LABlab(81.80, -2.87, 59.58)
CIE-LCHlch(81.80, 59.65, 92.76°)
OKLaboklab(84.21% -0.0122 0.1363)
OKLCHoklch(84.21% 0.137 95.1)
XYZxyz(55.7983, 59.9209, 17.6418)
Luminance0.5992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CA57 #5774E7
analogous
#E78257 #E7CA57 #BCE757
triadic
#E7CA57 #57E7CA #CA57E7
tetradic
#E7CA57 #57E782 #5774E7 #E757BC
square
#E7CA57 #57E782 #5774E7 #E757BC
split-complementary
#E7CA57 #57BCE7 #8257E7
monochromatic
#AB8E18 #DFB921 #E7CA57 #EFDB8D #F6ECC2

Accessibility & contrast

On white

1.62
#E7CA57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.98
#E7CA57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7CA57
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7CA57#FFFFFF#000000##000000
##E7CA571.001.6212.9812.98
#FFFFFF1.621.0021.0021.00
#00000012.9821.001.001.00
##00000012.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC64A
Deuteranopia (green-blind)
#E5CF5D
Tritanopia (blue-blind)
#F8BCB1
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #e7ca57;
/* rgb */ color: rgb(231, 202, 87);
/* oklch */ color: oklch(84.2% 0.137 95.1);
Tailwind
colors: {
  custom: {
    50: '#f2d98b',
    500: '#e7ca57',
    950: '#000000',
  },
}
SCSS
$custom: #e7ca57;
$custom-light: #f2d98b;
$custom-dark: #000000;
JSON
{
  "hex": "#e7ca57",
  "rgb": {
    "r": 231,
    "g": 202,
    "b": 87
  },
  "hsl": {
    "h": 47.917,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.84214,
    "c": 0.13685,
    "h": 95.1
  },
  "luminance": 0.59918
}

Semantic roles & 50–950 ramp

primary
#E7CA57
secondary
#364EAC
accent
#37D70E
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7CA57

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

Preview Lab → · Contrast checker → · Palette generator →

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