#8E1581#8E1581

#8E1581 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.189 H 333.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8E1581
RGBrgb(142, 21, 129)
HSLhsl(306, 74%, 32%)
HSVhsv(306, 85%, 56%)
CMYKcmyk(0%, 85.2%, 9.2%, 44.3%)
CIE-LABlab(33.72, 58.20, -30.70)
CIE-LCHlch(33.72, 65.80, 332.19°)
OKLaboklab(45.38% 0.1686 -0.0844)
OKLCHoklch(45.38% 0.189 333.4)
XYZxyz(15.3861, 7.8735, 21.4740)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1581 #158E22
analogous
#5F158E #8E1581 #8E1545
triadic
#8E1581 #818E15 #15818E
tetradic
#8E1581 #8E5F15 #158E22 #15458E
square
#8E1581 #8E5F15 #158E22 #15458E
split-complementary
#8E1581 #458E15 #158E5F
monochromatic
#230520 #590D51 #8E1581 #C31DB1 #E23BD0

Accessibility & contrast

On white

8.16
#8E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1581
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1581#FFFFFF#000000##FFFFFF
##8E15811.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4484
Deuteranopia (green-blind)
#43557E
Tritanopia (blue-blind)
#95254C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e1581;
/* rgb */ color: rgb(142, 21, 129);
/* oklch */ color: oklch(45.4% 0.189 333.4);
Tailwind
colors: {
  custom: {
    50: '#b365a6',
    500: '#8e1581',
    950: '#000000',
  },
}
SCSS
$custom: #8e1581;
$custom-light: #b365a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1581",
  "rgb": {
    "r": 142,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 306.446,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45381,
    "c": 0.18852,
    "h": 333.4
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#8E1581
secondary
#3DC24B
accent
#F14B37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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