#8E1987#8E1987

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

Color values

HEX#8E1987
RGBrgb(142, 25, 135)
HSLhsl(304, 70%, 33%)
HSVhsv(304, 82%, 56%)
CMYKcmyk(0%, 82.4%, 4.9%, 44.3%)
CIE-LABlab(34.39, 58.17, -33.37)
CIE-LCHlch(34.39, 67.06, 330.16°)
OKLaboklab(45.97% 0.1658 -0.0921)
OKLCHoklch(45.97% 0.19 330.9)
XYZxyz(15.8761, 8.1966, 23.6629)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1987 #198E20
analogous
#5B198E #8E1987 #8E194C
triadic
#8E1987 #878E19 #19878E
tetradic
#8E1987 #8E5B19 #198E20 #194C8E
square
#8E1987 #8E5B19 #198E20 #194C8E
split-complementary
#8E1987 #4C8E19 #198E5B
monochromatic
#260724 #5A1056 #8E1987 #C222B8 #DE43D5

Accessibility & contrast

On white

7.96
#8E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8E1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1987
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1987#FFFFFF#000000##FFFFFF
##8E19871.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06478A
Deuteranopia (green-blind)
#415684
Tritanopia (blue-blind)
#942A51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1987;
/* rgb */ color: rgb(142, 25, 135);
/* oklch */ color: oklch(46.0% 0.190 330.9);
Tailwind
colors: {
  custom: {
    50: '#b366aa',
    500: '#8e1987',
    950: '#000000',
  },
}
SCSS
$custom: #8e1987;
$custom-light: #b366aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1987",
  "rgb": {
    "r": 142,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 303.59,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45969,
    "c": 0.18968,
    "h": 330.9
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

primary
#8E1987
secondary
#44BF4B
accent
#ED463B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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