#8E2887#8E2887

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

Color values

HEX#8E2887
RGBrgb(142, 40, 135)
HSLhsl(304, 56%, 36%)
HSVhsv(304, 72%, 56%)
CMYKcmyk(0%, 71.8%, 4.9%, 44.3%)
CIE-LABlab(36.02, 53.49, -30.79)
CIE-LCHlch(36.02, 61.72, 330.08°)
OKLaboklab(47.14% 0.1523 -0.0848)
OKLCHoklch(47.14% 0.174 330.9)
XYZxyz(16.2873, 9.0189, 23.8000)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2887 #288E2F
analogous
#62288E #8E2887 #8E2854
triadic
#8E2887 #878E28 #28878E
tetradic
#8E2887 #8E6228 #288E2F #28548E
square
#8E2887 #8E6228 #288E2F #28548E
split-complementary
#8E2887 #548E28 #288E62
monochromatic
#2F0D2C #5E1B5A #8E2887 #BE35B4 #D25FCA

Accessibility & contrast

On white

7.49
#8E2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2887
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2887#FFFFFF#000000##FFFFFF
##8E28871.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8A
Deuteranopia (green-blind)
#475A84
Tritanopia (blue-blind)
#943454
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2887;
/* rgb */ color: rgb(142, 40, 135);
/* oklch */ color: oklch(47.1% 0.174 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26caa',
    500: '#8e2887',
    950: '#000000',
  },
}
SCSS
$custom: #8e2887;
$custom-light: #b26caa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2887",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 304.118,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47137,
    "c": 0.1743,
    "h": 330.9
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#8E2887
secondary
#5BB761
accent
#DF5348
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2887

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

Preview Lab → · Contrast checker → · Palette generator →

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