#8E1887#8E1887

#8E1887 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.191 H 330.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8E1887
RGBrgb(142, 24, 135)
HSLhsl(304, 71%, 33%)
HSVhsv(304, 83%, 56%)
CMYKcmyk(0%, 83.1%, 4.9%, 44.3%)
CIE-LABlab(34.30, 58.42, -33.50)
CIE-LCHlch(34.30, 67.34, 330.17°)
OKLaboklab(45.91% 0.1665 -0.0925)
OKLCHoklch(45.91% 0.191 330.9)
XYZxyz(15.8551, 8.1546, 23.6559)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1887 #188E1F
analogous
#5A188E #8E1887 #8E184C
triadic
#8E1887 #878E18 #18878E
tetradic
#8E1887 #8E5A18 #188E1F #184C8E
square
#8E1887 #8E5A18 #188E1F #184C8E
split-complementary
#8E1887 #4C8E18 #188E5A
monochromatic
#250623 #5A0F55 #8E1887 #C221B9 #DF41D6

Accessibility & contrast

On white

7.98
#8E1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1887
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1887#FFFFFF#000000##FFFFFF
##8E18871.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04478A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#942A50
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1887;
/* rgb */ color: rgb(142, 24, 135);
/* oklch */ color: oklch(45.9% 0.191 330.9);
Tailwind
colors: {
  custom: {
    50: '#b366aa',
    500: '#8e1887',
    950: '#000000',
  },
}
SCSS
$custom: #8e1887;
$custom-light: #b366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1887",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 303.559,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45907,
    "c": 0.1905,
    "h": 330.9
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#8E1887
secondary
#42C04A
accent
#EE453A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1887

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

Preview Lab → · Contrast checker → · Palette generator →

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