#E787F2#E787F2

#E787F2 is a light, vivid purple. Relative luminance 0.407; OKLCH L 76.3% C 0.178 H 323.3°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#E787F2
RGBrgb(231, 135, 242)
HSLhsl(294, 80%, 74%)
HSVhsv(294, 44%, 95%)
CMYKcmyk(4.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(69.99, 52.60, -38.62)
CIE-LCHlch(69.99, 65.25, 323.72°)
OKLaboklab(76.28% 0.1424 -0.1061)
OKLCHoklch(76.28% 0.178 323.3)
XYZxyz(57.6444, 40.7301, 88.8125)
Luminance0.4073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E787F2 #92F287
analogous
#B287F2 #E787F2 #F287C8
triadic
#E787F2 #F2E787 #87F2E7
tetradic
#E787F2 #F2B287 #92F287 #87C8F2
square
#E787F2 #F2B287 #92F287 #87C8F2
split-complementary
#E787F2 #C8F287 #87F2B2
monochromatic
#D119E6 #DC50EC #E787F2 #F2BEF8 #F9E3FC

Accessibility & contrast

On white

2.30
#E787F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#E787F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E787F2
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E787F2#FFFFFF#000000##000000
##E787F21.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#95AFEF
Tritanopia (blue-blind)
#EA93B1
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #e787f2;
/* rgb */ color: rgb(231, 135, 242);
/* oklch */ color: oklch(76.3% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#f0acf6',
    500: '#e787f2',
    950: '#000000',
  },
}
SCSS
$custom: #e787f2;
$custom-light: #f0acf6;
$custom-dark: #000000;
JSON
{
  "hex": "#e787f2",
  "rgb": {
    "r": 231,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 293.832,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.76281,
    "c": 0.17761,
    "h": 323.3
  },
  "luminance": 0.40728
}

Semantic roles & 50–950 ramp

primary
#E787F2
secondary
#DAF4D7
accent
#DD091F
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #E787F2

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

Preview Lab → · Contrast checker → · Palette generator →

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