#E787F5#E787F5

#E787F5 is a light, vivid purple. Relative luminance 0.409; OKLCH L 76.4% C 0.181 H 322.3°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#E787F5
RGBrgb(231, 135, 245)
HSLhsl(292, 85%, 75%)
HSVhsv(292, 45%, 96%)
CMYKcmyk(5.7%, 44.9%, 0%, 3.9%)
CIE-LABlab(70.11, 53.16, -40.06)
CIE-LCHlch(70.11, 66.56, 323.00°)
OKLaboklab(76.42% 0.1429 -0.1103)
OKLCHoklch(76.42% 0.181 322.3)
XYZxyz(58.0986, 40.9118, 91.2049)
Luminance0.4091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787F5 #95F587
analogous
#B087F5 #E787F5 #F587CC
triadic
#E787F5 #F5E787 #87F5E7
tetradic
#E787F5 #F5B087 #95F587 #87CCF5
square
#E787F5 #F5B087 #95F587 #87CCF5
split-complementary
#E787F5 #CCF587 #87F5B0
monochromatic
#D016EC #DC4FF0 #E787F5 #F2BFFA #F9E3FD

Accessibility & contrast

On white

2.29
#E787F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#E787F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787F5
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787F5#FFFFFF#000000##000000
##E787F51.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A4F9
Deuteranopia (green-blind)
#93AFF2
Tritanopia (blue-blind)
#EA94B3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #e787f5;
/* rgb */ color: rgb(231, 135, 245);
/* oklch */ color: oklch(76.4% 0.181 322.3);
Tailwind
colors: {
  custom: {
    50: '#f0acf9',
    500: '#e787f5',
    950: '#000000',
  },
}
SCSS
$custom: #e787f5;
$custom-light: #f0acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#e787f5",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 292.364,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.76418,
    "c": 0.18051,
    "h": 322.3
  },
  "luminance": 0.40909
}

Semantic roles & 50–950 ramp

primary
#E787F5
secondary
#DAF5D6
accent
#E10420
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#171017
muted
#857F85

Preview Lab

Preview with #E787F5

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

Preview Lab → · Contrast checker → · Palette generator →

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