#E787FB#E787FB

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

Color values

HEX#E787FB
RGBrgb(231, 135, 251)
HSLhsl(290, 94%, 76%)
HSVhsv(290, 46%, 98%)
CMYKcmyk(8%, 46.2%, 0%, 1.6%)
CIE-LABlab(70.37, 54.29, -42.93)
CIE-LCHlch(70.37, 69.21, 321.67°)
OKLaboklab(76.7% 0.1439 -0.1185)
OKLCHoklch(76.7% 0.186 320.5)
XYZxyz(59.0295, 41.2842, 96.1073)
Luminance0.4128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787FB #9BFB87
analogous
#AD87FB #E787FB #FB87D5
triadic
#E787FB #FBE787 #87FBE7
tetradic
#E787FB #FBAD87 #9BFB87 #87D5FB
square
#E787FB #FBAD87 #9BFB87 #87D5FB
split-complementary
#E787FB #D5FB87 #87FBAD
monochromatic
#CF11F7 #DB4CF9 #E787FB #F3C2FD #F9E1FE

Accessibility & contrast

On white

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

On black

9.26
#E787FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787FB
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787FB#FFFFFF#000000##000000
##E787FB1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A5FF
Deuteranopia (green-blind)
#91B0F8
Tritanopia (blue-blind)
#E996B5
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #e787fb;
/* rgb */ color: rgb(231, 135, 251);
/* oklch */ color: oklch(76.7% 0.186 320.5);
Tailwind
colors: {
  custom: {
    50: '#f1acfd',
    500: '#e787fb',
    950: '#000000',
  },
}
SCSS
$custom: #e787fb;
$custom-light: #f1acfd;
$custom-dark: #000000;
JSON
{
  "hex": "#e787fb",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 289.655,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76697,
    "c": 0.18641,
    "h": 320.5
  },
  "luminance": 0.41282
}

Semantic roles & 50–950 ramp

primary
#E787FB
secondary
#DBF6D5
accent
#E60028
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#171017
muted
#857F85

Preview Lab

Preview with #E787FB

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

Preview Lab → · Contrast checker → · Palette generator →

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