#E2CC48#E2CC48

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

Color values

HEX#E2CC48
RGBrgb(226, 204, 72)
HSLhsl(51, 73%, 58%)
HSVhsv(51, 68%, 89%)
CMYKcmyk(0%, 9.7%, 68.1%, 11.4%)
CIE-LABlab(81.74, -6.86, 65.63)
CIE-LCHlch(81.74, 65.99, 95.97°)
OKLaboklab(84.03% -0.025 0.147)
OKLCHoklch(84.03% 0.149 99.7)
XYZxyz(54.1290, 59.8249, 14.8258)
Luminance0.5982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CC48 #485EE2
analogous
#E27F48 #E2CC48 #ABE248
triadic
#E2CC48 #48E2CC #CC48E2
tetradic
#E2CC48 #48E27F #485EE2 #E248AB
square
#E2CC48 #48E27F #485EE2 #E248AB
split-complementary
#E2CC48 #48ABE2 #7F48E2
monochromatic
#988518 #CCB420 #E2CC48 #EADB7D #F3E9B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2CC48#FFFFFF#000000##000000
##E2CC481.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)
#DFC735
Deuteranopia (green-blind)
#E5CF50
Tritanopia (blue-blind)
#F3BEB1
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #e2cc48;
/* rgb */ color: rgb(226, 204, 72);
/* oklch */ color: oklch(84.0% 0.149 99.7);
Tailwind
colors: {
  custom: {
    50: '#efdb82',
    500: '#e2cc48',
    950: '#000000',
  },
}
SCSS
$custom: #e2cc48;
$custom-light: #efdb82;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cc48",
  "rgb": {
    "r": 226,
    "g": 204,
    "b": 72
  },
  "hsl": {
    "h": 51.429,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.84029,
    "c": 0.14909,
    "h": 99.7
  },
  "luminance": 0.59822
}

Semantic roles & 50–950 ramp

primary
#E2CC48
secondary
#33429C
accent
#53EF38
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2CC48

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

Preview Lab → · Contrast checker → · Palette generator →

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