#8E2787#8E2787

#8E2787 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.175 H 330.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#8E2787
RGBrgb(142, 39, 135)
HSLhsl(304, 57%, 35%)
HSVhsv(304, 73%, 56%)
CMYKcmyk(0%, 72.5%, 4.9%, 44.3%)
CIE-LABlab(35.89, 53.86, -30.99)
CIE-LCHlch(35.89, 62.13, 330.08°)
OKLaboklab(47.04% 0.1533 -0.0853)
OKLCHoklch(47.04% 0.176 330.9)
XYZxyz(16.2540, 8.9524, 23.7889)
Luminance0.0895 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2787 #278E2E
analogous
#62278E #8E2787 #8E2753
triadic
#8E2787 #878E27 #27878E
tetradic
#8E2787 #8E6227 #278E2E #27538E
square
#8E2787 #8E6227 #278E2E #27538E
split-complementary
#8E2787 #538E27 #278E62
monochromatic
#2E0D2C #5E1A59 #8E2787 #BE34B5 #D25DCA

Accessibility & contrast

On white

7.53
#8E2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2787
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2787#FFFFFF#000000##FFFFFF
##8E27871.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B8A
Deuteranopia (green-blind)
#465984
Tritanopia (blue-blind)
#943354
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e2787;
/* rgb */ color: rgb(142, 39, 135);
/* oklch */ color: oklch(47.0% 0.175 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26caa',
    500: '#8e2787',
    950: '#000000',
  },
}
SCSS
$custom: #8e2787;
$custom-light: #b26caa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2787",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 304.078,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47044,
    "c": 0.1755,
    "h": 330.9
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#8E2787
secondary
#59B860
accent
#E05248
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2787

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

Preview Lab → · Contrast checker → · Palette generator →

#8E2787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva