#8E1187#8E1187

#8E1187 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.196 H 331.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8E1187
RGBrgb(142, 17, 135)
HSLhsl(303, 79%, 31%)
HSVhsv(303, 88%, 56%)
CMYKcmyk(0%, 88%, 4.9%, 44.3%)
CIE-LABlab(33.78, 59.95, -34.34)
CIE-LCHlch(33.78, 69.08, 330.20°)
OKLaboklab(45.54% 0.1709 -0.0949)
OKLCHoklch(45.54% 0.196 331)
XYZxyz(15.7289, 7.9023, 23.6139)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1187 #118E18
analogous
#56118E #8E1187 #8E1148
triadic
#8E1187 #878E11 #11878E
tetradic
#8E1187 #8E5611 #118E18 #11488E
square
#8E1187 #8E5611 #118E18 #11488E
split-complementary
#8E1187 #488E11 #118E56
monochromatic
#21041F #570A53 #8E1187 #C518BB #E733DC

Accessibility & contrast

On white

8.14
#8E1187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8E1187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1187
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1187#FFFFFF#000000##FFFFFF
##8E11871.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#94264F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e1187;
/* rgb */ color: rgb(142, 17, 135);
/* oklch */ color: oklch(45.5% 0.196 331.0);
Tailwind
colors: {
  custom: {
    50: '#b364aa',
    500: '#8e1187',
    950: '#000000',
  },
}
SCSS
$custom: #8e1187;
$custom-light: #b364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1187",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 135
  },
  "hsl": {
    "h": 303.36,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.19552,
    "h": 331
  },
  "luminance": 0.07901
}

Semantic roles & 50–950 ramp

primary
#8E1187
secondary
#38C240
accent
#F53E33
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120610
muted
#817A7F

Preview Lab

Preview with #8E1187

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

Preview Lab → · Contrast checker → · Palette generator →

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