#E2C052#E2C052

#E2C052 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.7% C 0.133 H 92.0°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#E2C052
RGBrgb(226, 192, 82)
HSLhsl(46, 71%, 60%)
HSVhsv(46, 64%, 89%)
CMYKcmyk(0%, 15%, 63.7%, 11.4%)
CIE-LABlab(78.74, -0.11, 58.31)
CIE-LCHlch(78.74, 58.31, 90.11°)
OKLaboklab(81.68% -0.0045 0.133)
OKLCHoklch(81.68% 0.133 92)
XYZxyz(51.7392, 54.4800, 15.7715)
Luminance0.5448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C052 #5274E2
analogous
#E27852 #E2C052 #BCE252
triadic
#E2C052 #52E2C0 #C052E2
tetradic
#E2C052 #52E278 #5274E2 #E252BC
square
#E2C052 #52E278 #5274E2 #E252BC
split-complementary
#E2C052 #52BCE2 #7852E2
monochromatic
#9F801B #D3AA23 #E2C052 #EBD386 #F4E6BB

Accessibility & contrast

On white

1.77
#E2C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#E2C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C052
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C052#FFFFFF#000000##000000
##E2C0521.001.7711.9011.90
#FFFFFF1.771.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD46
Deuteranopia (green-blind)
#DCC757
Tritanopia (blue-blind)
#F3B2A8
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e2c052;
/* rgb */ color: rgb(226, 192, 82);
/* oklch */ color: oklch(81.7% 0.133 92.0);
Tailwind
colors: {
  custom: {
    50: '#efd287',
    500: '#e2c052',
    950: '#000000',
  },
}
SCSS
$custom: #e2c052;
$custom-light: #efd287;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c052",
  "rgb": {
    "r": 226,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 45.833,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.81679,
    "c": 0.13312,
    "h": 92
  },
  "luminance": 0.54477
}

Semantic roles & 50–950 ramp

primary
#E2C052
secondary
#3650A2
accent
#40D312
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #E2C052

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

Preview Lab → · Contrast checker → · Palette generator →

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