#E2C142#E2C142

#E2C142 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.7% C 0.145 H 94.1°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#E2C142
RGBrgb(226, 193, 66)
HSLhsl(48, 73%, 57%)
HSVhsv(48, 71%, 89%)
CMYKcmyk(0%, 14.6%, 70.8%, 11.4%)
CIE-LABlab(78.87, -1.51, 65.08)
CIE-LCHlch(78.87, 65.10, 91.33°)
OKLaboklab(81.74% -0.0104 0.1448)
OKLCHoklch(81.74% 0.145 94.1)
XYZxyz(51.4200, 54.7049, 13.0039)
Luminance0.5470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C142 #4263E2
analogous
#E27142 #E2C142 #B3E242
triadic
#E2C142 #42E2C1 #C142E2
tetradic
#E2C142 #42E271 #4263E2 #E242B3
square
#E2C142 #42E271 #4263E2 #E242B3
split-complementary
#E2C142 #42B3E2 #7142E2
monochromatic
#937917 #C8A51F #E2C142 #EAD277 #F2E4AC

Accessibility & contrast

On white

1.76
#E2C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#E2C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C142
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C142#FFFFFF#000000##000000
##E2C1421.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#F4B2A7
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e2c142;
/* rgb */ color: rgb(226, 193, 66);
/* oklch */ color: oklch(81.7% 0.145 94.1);
Tailwind
colors: {
  custom: {
    50: '#efd37e',
    500: '#e2c142',
    950: '#000000',
  },
}
SCSS
$custom: #e2c142;
$custom-light: #efd37e;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c142",
  "rgb": {
    "r": 226,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 47.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81741,
    "c": 0.14514,
    "h": 94.1
  },
  "luminance": 0.54702
}

Semantic roles & 50–950 ramp

primary
#E2C142
secondary
#314698
accent
#5EF038
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #E2C142

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

Preview Lab → · Contrast checker → · Palette generator →

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