#E787DC#E787DC

#E787DC is a light, vivid purple. Relative luminance 0.395; OKLCH L 75.3% C 0.157 H 331.3°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#E787DC
RGBrgb(231, 135, 220)
HSLhsl(307, 67%, 72%)
HSVhsv(307, 42%, 91%)
CMYKcmyk(0%, 41.6%, 4.8%, 9.4%)
CIE-LABlab(69.10, 48.66, -27.87)
CIE-LCHlch(69.10, 56.08, 330.20°)
OKLaboklab(75.33% 0.138 -0.0756)
OKLCHoklch(75.33% 0.157 331.3)
XYZxyz(54.5367, 39.4871, 72.4454)
Luminance0.3948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787DC #87E792
analogous
#C287E7 #E787DC #E787AC
triadic
#E787DC #DCE787 #87DCE7
tetradic
#E787DC #E7C287 #87E792 #87ACE7
square
#E787DC #E7C287 #87E792 #87ACE7
split-complementary
#E787DC #ACE787 #87E7C2
monochromatic
#CB29B8 #DD54CD #E787DC #F1BAEB #FAE5F8

Accessibility & contrast

On white

2.36
#E787DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#E787DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787DC
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787DC#FFFFFF#000000##000000
##E787DC1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A0DF
Deuteranopia (green-blind)
#9DAED9
Tritanopia (blue-blind)
#EE8EA7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #e787dc;
/* rgb */ color: rgb(231, 135, 220);
/* oklch */ color: oklch(75.3% 0.157 331.3);
Tailwind
colors: {
  custom: {
    50: '#f0ace7',
    500: '#e787dc',
    950: '#000000',
  },
}
SCSS
$custom: #e787dc;
$custom-light: #f0ace7;
$custom-dark: #000000;
JSON
{
  "hex": "#e787dc",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 306.875,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75331,
    "c": 0.1573,
    "h": 331.3
  },
  "luminance": 0.39484
}

Semantic roles & 50–950 ramp

primary
#E787DC
secondary
#D9F1DC
accent
#CF2C17
background
#FEFAFE
surface
#FDF4FC
border
#D5CED5
text
#171016
muted
#857F84

Preview Lab

Preview with #E787DC

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

Preview Lab → · Contrast checker → · Palette generator →

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