#E7CC57#E7CC57

#E7CC57 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.6% C 0.138 H 96.3°. Best body text is #000000 at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#E7CC57
RGBrgb(231, 204, 87)
HSLhsl(49, 75%, 62%)
HSVhsv(49, 62%, 91%)
CMYKcmyk(0%, 11.7%, 62.3%, 9.4%)
CIE-LABlab(82.31, -3.89, 60.14)
CIE-LCHlch(82.31, 60.26, 93.70°)
OKLaboklab(84.62% -0.0151 0.1375)
OKLCHoklch(84.62% 0.138 96.3)
XYZxyz(56.2706, 60.8655, 17.7992)
Luminance0.6086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CC57 #5772E7
analogous
#E78457 #E7CC57 #BAE757
triadic
#E7CC57 #57E7CC #CC57E7
tetradic
#E7CC57 #57E784 #5772E7 #E757BA
square
#E7CC57 #57E784 #5772E7 #E757BA
split-complementary
#E7CC57 #57BAE7 #8457E7
monochromatic
#AB9018 #DFBC21 #E7CC57 #EFDC8D #F6EDC2

Accessibility & contrast

On white

1.59
#E7CC57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.17
#E7CC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7CC57
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7CC57#FFFFFF#000000##000000
##E7CC571.001.5913.1713.17
#FFFFFF1.591.0021.0021.00
#00000013.1721.001.001.00
##00000013.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC84A
Deuteranopia (green-blind)
#E6D15D
Tritanopia (blue-blind)
#F8BEB3
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e7cc57;
/* rgb */ color: rgb(231, 204, 87);
/* oklch */ color: oklch(84.6% 0.138 96.3);
Tailwind
colors: {
  custom: {
    50: '#f2db8b',
    500: '#e7cc57',
    950: '#000000',
  },
}
SCSS
$custom: #e7cc57;
$custom-light: #f2db8b;
$custom-dark: #000000;
JSON
{
  "hex": "#e7cc57",
  "rgb": {
    "r": 231,
    "g": 204,
    "b": 87
  },
  "hsl": {
    "h": 48.75,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.84618,
    "c": 0.13833,
    "h": 96.3
  },
  "luminance": 0.60863
}

Semantic roles & 50–950 ramp

primary
#E7CC57
secondary
#364CAC
accent
#34D70E
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7CC57

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

Preview Lab → · Contrast checker → · Palette generator →

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