#E7CC51#E7CC51

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

Color values

HEX#E7CC51
RGBrgb(231, 204, 81)
HSLhsl(49, 76%, 61%)
HSVhsv(49, 65%, 91%)
CMYKcmyk(0%, 11.7%, 64.9%, 9.4%)
CIE-LABlab(82.26, -4.26, 62.65)
CIE-LCHlch(82.26, 62.79, 93.89°)
OKLaboklab(84.56% -0.0169 0.1419)
OKLCHoklch(84.56% 0.143 96.8)
XYZxyz(56.0356, 60.7715, 16.5615)
Luminance0.6077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7CC51 #516CE7
analogous
#E78151 #E7CC51 #B7E751
triadic
#E7CC51 #51E7CC #CC51E7
tetradic
#E7CC51 #51E781 #516CE7 #E751B7
square
#E7CC51 #51E781 #516CE7 #E751B7
split-complementary
#E7CC51 #51B7E7 #8151E7
monochromatic
#A78D17 #DCBA1E #E7CC51 #EEDC87 #F6ECBD

Accessibility & contrast

On white

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

On black

13.15
#E7CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7CC51
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7CC51#FFFFFF#000000##000000
##E7CC511.001.6013.1513.15
#FFFFFF1.601.0021.0021.00
#00000013.1521.001.001.00
##00000013.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e7cc51;
/* rgb */ color: rgb(231, 204, 81);
/* oklch */ color: oklch(84.6% 0.143 96.8);
Tailwind
colors: {
  custom: {
    50: '#f2db87',
    500: '#e7cc51',
    950: '#000000',
  },
}
SCSS
$custom: #e7cc51;
$custom-light: #f2db87;
$custom-dark: #000000;
JSON
{
  "hex": "#e7cc51",
  "rgb": {
    "r": 231,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 49.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.84562,
    "c": 0.14294,
    "h": 96.8
  },
  "luminance": 0.60769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E7CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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