#E0C142#E0C142

#E0C142 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.6% C 0.145 H 95.0°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#E0C142
RGBrgb(224, 193, 66)
HSLhsl(48, 72%, 57%)
HSVhsv(48, 71%, 88%)
CMYKcmyk(0%, 13.8%, 70.5%, 12.2%)
CIE-LABlab(78.68, -2.36, 64.83)
CIE-LCHlch(78.68, 64.87, 92.09°)
OKLaboklab(81.55% -0.0127 0.1443)
OKLCHoklch(81.55% 0.145 95)
XYZxyz(50.7964, 54.3833, 12.9747)
Luminance0.5438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E0C142 #4261E0
analogous
#E07242 #E0C142 #B0E042
triadic
#E0C142 #42E0C1 #C142E0
tetradic
#E0C142 #42E072 #4261E0 #E042B0
square
#E0C142 #42E072 #4261E0 #E042B0
split-complementary
#E0C142 #42B0E0 #7242E0
monochromatic
#907818 #C5A420 #E0C142 #E9D277 #F1E3AB

Accessibility & contrast

On white

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

On black

11.88
#E0C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E0C142
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E0C142#FFFFFF#000000##000000
##E0C1421.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e0c142;
/* rgb */ color: rgb(224, 193, 66);
/* oklch */ color: oklch(81.6% 0.145 95.0);
Tailwind
colors: {
  custom: {
    50: '#eed37e',
    500: '#e0c142',
    950: '#000000',
  },
}
SCSS
$custom: #e0c142;
$custom-light: #eed37e;
$custom-dark: #000000;
JSON
{
  "hex": "#e0c142",
  "rgb": {
    "r": 224,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 48.228,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81551,
    "c": 0.14487,
    "h": 95
  },
  "luminance": 0.54381
}

Semantic roles & 50–950 ramp

primary
#E0C142
secondary
#314595
accent
#5DEF39
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #E0C142

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

Preview Lab → · Contrast checker → · Palette generator →

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