#8E1780#8E1780

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

Color values

HEX#8E1780
RGBrgb(142, 23, 128)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 84%, 56%)
CMYKcmyk(0%, 83.8%, 9.9%, 44.3%)
CIE-LABlab(33.82, 57.58, -29.91)
CIE-LCHlch(33.82, 64.88, 332.55°)
OKLaboklab(45.44% 0.1672 -0.0821)
OKLCHoklch(45.44% 0.186 333.8)
XYZxyz(15.3582, 7.9235, 21.1384)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1780 #178E25
analogous
#61178E #8E1780 #8E1744
triadic
#8E1780 #808E17 #17808E
tetradic
#8E1780 #8E6117 #178E25 #17448E
square
#8E1780 #8E6117 #178E25 #17448E
split-complementary
#8E1780 #448E17 #178E61
monochromatic
#250621 #590E51 #8E1780 #C320AF #E03FCD

Accessibility & contrast

On white

8.13
#8E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1780
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1780#FFFFFF#000000##FFFFFF
##8E17801.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124583
Deuteranopia (green-blind)
#44557D
Tritanopia (blue-blind)
#95254C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1780;
/* rgb */ color: rgb(142, 23, 128);
/* oklch */ color: oklch(45.4% 0.186 333.8);
Tailwind
colors: {
  custom: {
    50: '#b365a5',
    500: '#8e1780',
    950: '#000000',
  },
}
SCSS
$custom: #8e1780;
$custom-light: #b365a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1780",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 307.059,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45438,
    "c": 0.18626,
    "h": 333.8
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#8E1780
secondary
#40C050
accent
#EF4E39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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