#E240D4#E240D4

#E240D4 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 65.9% C 0.249 H 331.8°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#E240D4
RGBrgb(226, 64, 212)
HSLhsl(305, 74%, 57%)
HSVhsv(305, 72%, 89%)
CMYKcmyk(0%, 71.7%, 6.2%, 11.4%)
CIE-LABlab(56.68, 76.67, -42.79)
CIE-LCHlch(56.68, 87.81, 330.83°)
OKLaboklab(65.94% 0.2196 -0.1177)
OKLCHoklch(65.94% 0.249 331.8)
XYZxyz(45.0811, 24.5927, 64.6471)
Luminance0.2459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E240D4 #40E24E
analogous
#9F40E2 #E240D4 #E24083
triadic
#E240D4 #D4E240 #40D4E2
tetradic
#E240D4 #E29F40 #40E24E #4083E2
square
#E240D4 #E29F40 #40E24E #4083E2
split-complementary
#E240D4 #83E240 #40E29F
monochromatic
#921687 #C71EB8 #E240D4 #EA75E0 #F2AAEC

Accessibility & contrast

On white

3.55
#E240D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#E240D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #E240D4
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E240D4#FFFFFF#000000##000000
##E240D41.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3479D8
Deuteranopia (green-blind)
#7490D0
Tritanopia (blue-blind)
#EB5286
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #e240d4;
/* rgb */ color: rgb(226, 64, 212);
/* oklch */ color: oklch(65.9% 0.249 331.8);
Tailwind
colors: {
  custom: {
    50: '#ef84e2',
    500: '#e240d4',
    950: '#000000',
  },
}
SCSS
$custom: #e240d4;
$custom-light: #ef84e2;
$custom-dark: #000000;
JSON
{
  "hex": "#e240d4",
  "rgb": {
    "r": 226,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 305.185,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6594,
    "c": 0.24917,
    "h": 331.8
  },
  "luminance": 0.24589
}

Semantic roles & 50–950 ramp

primary
#E240D4
secondary
#9EE0A4
accent
#F04738
background
#FFF8FD
surface
#FFF0FB
border
#D7CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #E240D4

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

Preview Lab → · Contrast checker → · Palette generator →

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