#E2C242#E2C242

#E2C242 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.9% C 0.146 H 94.7°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#E2C242
RGBrgb(226, 194, 66)
HSLhsl(48, 73%, 57%)
HSVhsv(48, 71%, 89%)
CMYKcmyk(0%, 14.2%, 70.8%, 11.4%)
CIE-LABlab(79.13, -2.03, 65.33)
CIE-LCHlch(79.13, 65.36, 91.78°)
OKLaboklab(81.94% -0.0119 0.1453)
OKLCHoklch(81.94% 0.146 94.7)
XYZxyz(51.6418, 55.1485, 13.0778)
Luminance0.5515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C242 #4262E2
analogous
#E27242 #E2C242 #B2E242
triadic
#E2C242 #42E2C2 #C242E2
tetradic
#E2C242 #42E272 #4262E2 #E242B2
square
#E2C242 #42E272 #4262E2 #E242B2
split-complementary
#E2C242 #42B2E2 #7242E2
monochromatic
#937A17 #C8A61F #E2C242 #EAD377 #F2E4AC

Accessibility & contrast

On white

1.75
#E2C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#E2C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C242
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C242#FFFFFF#000000##000000
##E2C2421.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2F
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#F4B3A8
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #e2c242;
/* rgb */ color: rgb(226, 194, 66);
/* oklch */ color: oklch(81.9% 0.146 94.7);
Tailwind
colors: {
  custom: {
    50: '#efd47e',
    500: '#e2c242',
    950: '#000000',
  },
}
SCSS
$custom: #e2c242;
$custom-light: #efd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c242",
  "rgb": {
    "r": 226,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 48,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81944,
    "c": 0.14579,
    "h": 94.7
  },
  "luminance": 0.55146
}

Semantic roles & 50–950 ramp

primary
#E2C242
secondary
#314598
accent
#5DF038
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #E2C242

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

Preview Lab → · Contrast checker → · Palette generator →

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