#8E1881#8E1881

#8E1881 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.186 H 333.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8E1881
RGBrgb(142, 24, 129)
HSLhsl(307, 71%, 33%)
HSVhsv(307, 83%, 56%)
CMYKcmyk(0%, 83.1%, 9.2%, 44.3%)
CIE-LABlab(33.96, 57.49, -30.31)
CIE-LCHlch(33.96, 64.99, 332.20°)
OKLaboklab(45.56% 0.1665 -0.0833)
OKLCHoklch(45.56% 0.186 333.4)
XYZxyz(15.4445, 7.9904, 21.4935)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1881 #188E25
analogous
#60188E #8E1881 #8E1846
triadic
#8E1881 #818E18 #18818E
tetradic
#8E1881 #8E6018 #188E25 #18468E
square
#8E1881 #8E6018 #188E25 #18468E
split-complementary
#8E1881 #468E18 #188E60
monochromatic
#250622 #5A0F51 #8E1881 #C221B1 #DF41CE

Accessibility & contrast

On white

8.08
#8E1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8E1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1881
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1881#FFFFFF#000000##FFFFFF
##8E18811.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124584
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#95264D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1881;
/* rgb */ color: rgb(142, 24, 129);
/* oklch */ color: oklch(45.6% 0.186 333.4);
Tailwind
colors: {
  custom: {
    50: '#b366a6',
    500: '#8e1881',
    950: '#000000',
  },
}
SCSS
$custom: #8e1881;
$custom-light: #b366a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1881",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 306.61,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45555,
    "c": 0.18616,
    "h": 333.4
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#8E1881
secondary
#42C050
accent
#EE4E3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1881

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

Preview Lab → · Contrast checker → · Palette generator →

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