#E2E040#E2E040

#E2E040 is a very light, vivid yellow. Relative luminance 0.699; OKLCH L 88.1% C 0.172 H 108.7°. Best body text is #000000 at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#E2E040
RGBrgb(226, 224, 64)
HSLhsl(59, 74%, 57%)
HSVhsv(59, 72%, 89%)
CMYKcmyk(0%, 0.9%, 71.7%, 11.4%)
CIE-LABlab(86.92, -17.24, 73.64)
CIE-LCHlch(86.92, 75.64, 103.18°)
OKLaboklab(88.14% -0.0551 0.1625)
OKLCHoklch(88.14% 0.172 108.7)
XYZxyz(58.9473, 69.8521, 15.2272)
Luminance0.6985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2E040 #4042E2
analogous
#E28F40 #E2E040 #93E240
triadic
#E2E040 #40E2E0 #E040E2
tetradic
#E2E040 #40E28F #4042E2 #E24093
square
#E2E040 #40E28F #4042E2 #E24093
split-complementary
#E2E040 #4093E2 #8F40E2
monochromatic
#929016 #C7C51E #E2E040 #EAE975 #F2F1AA

Accessibility & contrast

On white

1.40
#E2E040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.97
#E2E040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2E040
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2E040#FFFFFF#000000##000000
##E2E0401.001.4014.9714.97
#FFFFFF1.401.0021.0021.00
#00000014.9721.001.001.00
##00000014.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D721
Deuteranopia (green-blind)
#F5DC4C
Tritanopia (blue-blind)
#F2D2C1
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #e2e040;
/* rgb */ color: rgb(226, 224, 64);
/* oklch */ color: oklch(88.1% 0.172 108.7);
Tailwind
colors: {
  custom: {
    50: '#efe980',
    500: '#e2e040',
    950: '#000000',
  },
}
SCSS
$custom: #e2e040;
$custom-light: #efe980;
$custom-dark: #000000;
JSON
{
  "hex": "#e2e040",
  "rgb": {
    "r": 226,
    "g": 224,
    "b": 64
  },
  "hsl": {
    "h": 59.259,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.88136,
    "c": 0.17162,
    "h": 108.7
  },
  "luminance": 0.6985
}

Semantic roles & 50–950 ramp

primary
#E2E040
secondary
#303196
accent
#3AF038
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17160B
muted
#85847E

Preview Lab

Preview with #E2E040

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

Preview Lab → · Contrast checker → · Palette generator →

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