#E2CC47#E2CC47

#E2CC47 is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 84.0% C 0.150 H 99.7°. Best body text is #000000 at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#E2CC47
RGBrgb(226, 204, 71)
HSLhsl(51, 73%, 58%)
HSVhsv(51, 69%, 89%)
CMYKcmyk(0%, 9.7%, 68.6%, 11.4%)
CIE-LABlab(81.74, -6.91, 66.01)
CIE-LCHlch(81.74, 66.37, 95.98°)
OKLaboklab(84.02% -0.0253 0.1476)
OKLCHoklch(84.02% 0.15 99.7)
XYZxyz(54.0967, 59.8119, 14.6554)
Luminance0.5981 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CC47 #475DE2
analogous
#E27E47 #E2CC47 #AAE247
triadic
#E2CC47 #47E2CC #CC47E2
tetradic
#E2CC47 #47E27E #475DE2 #E247AA
square
#E2CC47 #47E27E #475DE2 #E247AA
split-complementary
#E2CC47 #47AAE2 #7E47E2
monochromatic
#978518 #CCB320 #E2CC47 #EADB7C #F3E9B1

Accessibility & contrast

On white

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

On black

12.96
#E2CC47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CC47
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CC47#FFFFFF#000000##000000
##E2CC471.001.6212.9612.96
#FFFFFF1.621.0021.0021.00
#00000012.9621.001.001.00
##00000012.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC734
Deuteranopia (green-blind)
#E5CF4F
Tritanopia (blue-blind)
#F3BDB1
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #e2cc47;
/* rgb */ color: rgb(226, 204, 71);
/* oklch */ color: oklch(84.0% 0.150 99.7);
Tailwind
colors: {
  custom: {
    50: '#efdb82',
    500: '#e2cc47',
    950: '#000000',
  },
}
SCSS
$custom: #e2cc47;
$custom-light: #efdb82;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cc47",
  "rgb": {
    "r": 226,
    "g": 204,
    "b": 71
  },
  "hsl": {
    "h": 51.484,
    "s": 72.77,
    "l": 58.235
  },
  "oklch": {
    "l": 0.84021,
    "c": 0.14976,
    "h": 99.7
  },
  "luminance": 0.59809
}

Semantic roles & 50–950 ramp

primary
#E2CC47
secondary
#32419B
accent
#52EF38
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2CC47

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

Preview Lab → · Contrast checker → · Palette generator →

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