#E787FC#E787FC

#E787FC is a light, vivid purple. Relative luminance 0.413; OKLCH L 76.7% C 0.187 H 320.2°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#E787FC
RGBrgb(231, 135, 252)
HSLhsl(289, 95%, 76%)
HSVhsv(289, 46%, 99%)
CMYKcmyk(8.3%, 46.4%, 0%, 1.2%)
CIE-LABlab(70.42, 54.48, -43.40)
CIE-LCHlch(70.42, 69.66, 321.45°)
OKLaboklab(76.74% 0.144 -0.1199)
OKLCHoklch(76.74% 0.187 320.2)
XYZxyz(59.1875, 41.3474, 96.9397)
Luminance0.4134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787FC #9CFC87
analogous
#AC87FC #E787FC #FC87D6
triadic
#E787FC #FCE787 #87FCE7
tetradic
#E787FC #FCAC87 #9CFC87 #87D6FC
square
#E787FC #FCAC87 #9CFC87 #87D6FC
split-complementary
#E787FC #D6FC87 #87FCAC
monochromatic
#CF10F9 #DB4BFB #E787FC #F3C3FD #F9E1FE

Accessibility & contrast

On white

2.27
#E787FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#E787FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787FC
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787FC#FFFFFF#000000##000000
##E787FC1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A5FF
Deuteranopia (green-blind)
#90B0F9
Tritanopia (blue-blind)
#E896B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #e787fc;
/* rgb */ color: rgb(231, 135, 252);
/* oklch */ color: oklch(76.7% 0.187 320.2);
Tailwind
colors: {
  custom: {
    50: '#f1acfe',
    500: '#e787fc',
    950: '#000000',
  },
}
SCSS
$custom: #e787fc;
$custom-light: #f1acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#e787fc",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 289.231,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76745,
    "c": 0.1874,
    "h": 320.2
  },
  "luminance": 0.41345
}

Semantic roles & 50–950 ramp

primary
#E787FC
secondary
#DBF6D5
accent
#E60029
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#171018
muted
#857F86

Preview Lab

Preview with #E787FC

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

Preview Lab → · Contrast checker → · Palette generator →

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