#E7CC56#E7CC56

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

Color values

HEX#E7CC56
RGBrgb(231, 204, 86)
HSLhsl(49, 75%, 62%)
HSVhsv(49, 63%, 91%)
CMYKcmyk(0%, 11.7%, 62.8%, 9.4%)
CIE-LABlab(82.30, -3.96, 60.56)
CIE-LCHlch(82.30, 60.69, 93.74°)
OKLaboklab(84.61% -0.0154 0.1383)
OKLCHoklch(84.61% 0.139 96.4)
XYZxyz(56.2301, 60.8492, 17.5855)
Luminance0.6085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CC56 #5671E7
analogous
#E78456 #E7CC56 #B9E756
triadic
#E7CC56 #56E7CC #CC56E7
tetradic
#E7CC56 #56E784 #5671E7 #E756B9
square
#E7CC56 #56E784 #5671E7 #E756B9
split-complementary
#E7CC56 #56B9E7 #8456E7
monochromatic
#AA8F18 #DFBC20 #E7CC56 #EFDC8C #F6ECC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E7CC56#FFFFFF#000000##000000
##E7CC561.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)
#DFC849
Deuteranopia (green-blind)
#E6D15C
Tritanopia (blue-blind)
#F8BEB3
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e7cc56;
/* rgb */ color: rgb(231, 204, 86);
/* oklch */ color: oklch(84.6% 0.139 96.4);
Tailwind
colors: {
  custom: {
    50: '#f2db8a',
    500: '#e7cc56',
    950: '#000000',
  },
}
SCSS
$custom: #e7cc56;
$custom-light: #f2db8a;
$custom-dark: #000000;
JSON
{
  "hex": "#e7cc56",
  "rgb": {
    "r": 231,
    "g": 204,
    "b": 86
  },
  "hsl": {
    "h": 48.828,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.84609,
    "c": 0.13912,
    "h": 96.4
  },
  "luminance": 0.60847
}

Semantic roles & 50–950 ramp

primary
#E7CC56
secondary
#354BAC
accent
#34D70E
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#17140C
muted
#85837F

Preview Lab

Preview with #E7CC56

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

Preview Lab → · Contrast checker → · Palette generator →

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