#E787F8#E787F8

#E787F8 is a light, vivid purple. Relative luminance 0.411; OKLCH L 76.6% C 0.183 H 321.4°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#E787F8
RGBrgb(231, 135, 248)
HSLhsl(291, 89%, 75%)
HSVhsv(291, 46%, 97%)
CMYKcmyk(6.9%, 45.6%, 0%, 2.7%)
CIE-LABlab(70.24, 53.72, -41.50)
CIE-LCHlch(70.24, 67.88, 322.32°)
OKLaboklab(76.56% 0.1434 -0.1144)
OKLCHoklch(76.56% 0.183 321.4)
XYZxyz(58.5603, 41.0965, 93.6365)
Luminance0.4109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787F8 #98F887
analogous
#AE87F8 #E787F8 #F887D1
triadic
#E787F8 #F8E787 #87F8E7
tetradic
#E787F8 #F8AE87 #98F887 #87D1F8
square
#E787F8 #F8AE87 #98F887 #87D1F8
split-complementary
#E787F8 #D1F887 #87F8AE
monochromatic
#D013F1 #DB4DF5 #E787F8 #F3C1FB #F9E2FD

Accessibility & contrast

On white

2.28
#E787F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#E787F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787F8
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787F8#FFFFFF#000000##000000
##E787F81.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A5FC
Deuteranopia (green-blind)
#92AFF5
Tritanopia (blue-blind)
#E995B4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #e787f8;
/* rgb */ color: rgb(231, 135, 248);
/* oklch */ color: oklch(76.6% 0.183 321.4);
Tailwind
colors: {
  custom: {
    50: '#f0acfb',
    500: '#e787f8',
    950: '#000000',
  },
}
SCSS
$custom: #e787f8;
$custom-light: #f0acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#e787f8",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 290.973,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.76557,
    "c": 0.18345,
    "h": 321.4
  },
  "luminance": 0.41094
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E787F8

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

Preview Lab → · Contrast checker → · Palette generator →

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