#E7CC52#E7CC52

#E7CC52 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.6% C 0.142 H 96.7°. Best body text is #000000 at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#E7CC52
RGBrgb(231, 204, 82)
HSLhsl(49, 76%, 61%)
HSVhsv(49, 65%, 91%)
CMYKcmyk(0%, 11.7%, 64.5%, 9.4%)
CIE-LABlab(82.26, -4.20, 62.23)
CIE-LCHlch(82.26, 62.38, 93.86°)
OKLaboklab(84.57% -0.0166 0.1412)
OKLCHoklch(84.57% 0.142 96.7)
XYZxyz(56.0734, 60.7866, 16.7604)
Luminance0.6078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CC52 #526DE7
analogous
#E78252 #E7CC52 #B7E752
triadic
#E7CC52 #52E7CC #CC52E7
tetradic
#E7CC52 #52E782 #526DE7 #E752B7
square
#E7CC52 #52E782 #526DE7 #E752B7
split-complementary
#E7CC52 #52B7E7 #8252E7
monochromatic
#A78D17 #DDBB1F #E7CC52 #EEDC88 #F6ECBD

Accessibility & contrast

On white

1.60
#E7CC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.16
#E7CC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7CC52
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7CC52#FFFFFF#000000##000000
##E7CC521.001.6013.1613.16
#FFFFFF1.601.0021.0021.00
#00000013.1621.001.001.00
##00000013.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC843
Deuteranopia (green-blind)
#E6D058
Tritanopia (blue-blind)
#F8BDB2
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e7cc52;
/* rgb */ color: rgb(231, 204, 82);
/* oklch */ color: oklch(84.6% 0.142 96.7);
Tailwind
colors: {
  custom: {
    50: '#f2db88',
    500: '#e7cc52',
    950: '#000000',
  },
}
SCSS
$custom: #e7cc52;
$custom-light: #f2db88;
$custom-dark: #000000;
JSON
{
  "hex": "#e7cc52",
  "rgb": {
    "r": 231,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 49.128,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.84571,
    "c": 0.14219,
    "h": 96.7
  },
  "luminance": 0.60784
}

Semantic roles & 50–950 ramp

primary
#E7CC52
secondary
#3449A9
accent
#32D80E
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7CC52

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

Preview Lab → · Contrast checker → · Palette generator →

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