#E340DB#E340DB

#E340DB is a light, highly saturated purple. Relative luminance 0.251; OKLCH L 66.5% C 0.255 H 330.1°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#E340DB
RGBrgb(227, 64, 219)
HSLhsl(303, 74%, 57%)
HSVhsv(303, 72%, 89%)
CMYKcmyk(0%, 71.8%, 3.5%, 11%)
CIE-LABlab(57.19, 77.94, -45.94)
CIE-LCHlch(57.19, 90.48, 329.48°)
OKLaboklab(66.45% 0.2208 -0.1268)
OKLCHoklch(66.45% 0.255 330.1)
XYZxyz(46.2979, 25.1157, 69.4135)
Luminance0.2511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E340DB #40E348
analogous
#9A40E3 #E340DB #E34089
triadic
#E340DB #DBE340 #40DBE3
tetradic
#E340DB #E39A40 #40E348 #4089E3
square
#E340DB #E39A40 #40E348 #4089E3
split-complementary
#E340DB #89E340 #40E39A
monochromatic
#93168D #C81DC0 #E340DB #EB75E5 #F3ABEF

Accessibility & contrast

On white

3.49
#E340DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#E340DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #E340DB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E340DB#FFFFFF#000000##000000
##E340DB1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7BDF
Deuteranopia (green-blind)
#7191D7
Tritanopia (blue-blind)
#EB568A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #e340db;
/* rgb */ color: rgb(227, 64, 219);
/* oklch */ color: oklch(66.5% 0.255 330.1);
Tailwind
colors: {
  custom: {
    50: '#f084e7',
    500: '#e340db',
    950: '#000000',
  },
}
SCSS
$custom: #e340db;
$custom-light: #f084e7;
$custom-dark: #000000;
JSON
{
  "hex": "#e340db",
  "rgb": {
    "r": 227,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 302.945,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.66453,
    "c": 0.25465,
    "h": 330.1
  },
  "luminance": 0.25112
}

Semantic roles & 50–950 ramp

primary
#E340DB
secondary
#9EE1A2
accent
#F14037
background
#FFF8FE
surface
#FFF0FC
border
#D7CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #E340DB

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

Preview Lab → · Contrast checker → · Palette generator →

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