#8E1587#8E1587

#8E1587 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.193 H 331.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8E1587
RGBrgb(142, 21, 135)
HSLhsl(303, 74%, 32%)
HSVhsv(303, 85%, 56%)
CMYKcmyk(0%, 85.2%, 4.9%, 44.3%)
CIE-LABlab(34.06, 59.12, -33.89)
CIE-LCHlch(34.06, 68.14, 330.18°)
OKLaboklab(45.74% 0.1686 -0.0936)
OKLCHoklch(45.74% 0.193 331)
XYZxyz(15.7967, 8.0377, 23.6364)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1587 #158E1C
analogous
#59158E #8E1587 #8E154B
triadic
#8E1587 #878E15 #15878E
tetradic
#8E1587 #8E5915 #158E1C #154B8E
square
#8E1587 #8E5915 #158E1C #154B8E
split-complementary
#8E1587 #4B8E15 #158E59
monochromatic
#230522 #590D54 #8E1587 #C31DBA #E23BD8

Accessibility & contrast

On white

8.05
#8E1587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1587
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1587#FFFFFF#000000##FFFFFF
##8E15871.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#942850
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1587;
/* rgb */ color: rgb(142, 21, 135);
/* oklch */ color: oklch(45.7% 0.193 331.0);
Tailwind
colors: {
  custom: {
    50: '#b365aa',
    500: '#8e1587',
    950: '#000000',
  },
}
SCSS
$custom: #8e1587;
$custom-light: #b365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1587",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 135
  },
  "hsl": {
    "h": 303.471,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45736,
    "c": 0.19281,
    "h": 331
  },
  "luminance": 0.08036
}

Semantic roles & 50–950 ramp

primary
#8E1587
secondary
#3DC245
accent
#F14237
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1587

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

Preview Lab → · Contrast checker → · Palette generator →

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