#E240D2#E240D2

#E240D2 is a light, highly saturated purple. Relative luminance 0.245; OKLCH L 65.8% C 0.248 H 332.4°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#E240D2
RGBrgb(226, 64, 210)
HSLhsl(306, 74%, 57%)
HSVhsv(306, 72%, 89%)
CMYKcmyk(0%, 71.7%, 7.1%, 11.4%)
CIE-LABlab(56.58, 76.37, -41.81)
CIE-LCHlch(56.58, 87.07, 331.30°)
OKLaboklab(65.84% 0.2195 -0.1149)
OKLCHoklch(65.84% 0.248 332.4)
XYZxyz(44.8304, 24.4924, 63.3266)
Luminance0.2449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E240D2 #40E250
analogous
#A140E2 #E240D2 #E24081
triadic
#E240D2 #D2E240 #40D2E2
tetradic
#E240D2 #E2A140 #40E250 #4081E2
square
#E240D2 #E2A140 #40E250 #4081E2
split-complementary
#E240D2 #81E240 #40E2A1
monochromatic
#921685 #C71EB6 #E240D2 #EA75DF #F2AAEB

Accessibility & contrast

On white

3.56
#E240D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#E240D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #E240D2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E240D2#FFFFFF#000000##000000
##E240D21.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3779D6
Deuteranopia (green-blind)
#7590CE
Tritanopia (blue-blind)
#EC5185
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #e240d2;
/* rgb */ color: rgb(226, 64, 210);
/* oklch */ color: oklch(65.8% 0.248 332.4);
Tailwind
colors: {
  custom: {
    50: '#ef84e0',
    500: '#e240d2',
    950: '#000000',
  },
}
SCSS
$custom: #e240d2;
$custom-light: #ef84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#e240d2",
  "rgb": {
    "r": 226,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 305.926,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.65837,
    "c": 0.24776,
    "h": 332.4
  },
  "luminance": 0.24489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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