#E2C342#E2C342

#E2C342 is a very light, vivid yellow. Relative luminance 0.556; OKLCH L 82.1% C 0.146 H 95.2°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#E2C342
RGBrgb(226, 195, 66)
HSLhsl(48, 73%, 57%)
HSVhsv(48, 71%, 89%)
CMYKcmyk(0%, 13.7%, 70.8%, 11.4%)
CIE-LABlab(79.38, -2.55, 65.59)
CIE-LCHlch(79.38, 65.64, 92.22°)
OKLaboklab(82.15% -0.0134 0.1458)
OKLCHoklch(82.15% 0.146 95.2)
XYZxyz(51.8652, 55.5951, 13.1523)
Luminance0.5559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C342 #4261E2
analogous
#E27342 #E2C342 #B1E242
triadic
#E2C342 #42E2C3 #C342E2
tetradic
#E2C342 #42E273 #4261E2 #E242B1
square
#E2C342 #42E273 #4261E2 #E242B1
split-complementary
#E2C342 #42B1E2 #7342E2
monochromatic
#937B17 #C8A71F #E2C342 #EAD477 #F2E5AC

Accessibility & contrast

On white

1.73
#E2C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#E2C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C342
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C342#FFFFFF#000000##000000
##E2C3421.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2F
Deuteranopia (green-blind)
#DFC949
Tritanopia (blue-blind)
#F4B4A9
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #e2c342;
/* rgb */ color: rgb(226, 195, 66);
/* oklch */ color: oklch(82.1% 0.146 95.2);
Tailwind
colors: {
  custom: {
    50: '#efd47e',
    500: '#e2c342',
    950: '#000000',
  },
}
SCSS
$custom: #e2c342;
$custom-light: #efd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c342",
  "rgb": {
    "r": 226,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 48.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.82146,
    "c": 0.14645,
    "h": 95.2
  },
  "luminance": 0.55592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E2C342

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

Preview Lab → · Contrast checker → · Palette generator →

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