#8E1782#8E1782

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

Color values

HEX#8E1782
RGBrgb(142, 23, 130)
HSLhsl(306, 72%, 32%)
HSVhsv(306, 84%, 56%)
CMYKcmyk(0%, 83.8%, 8.5%, 44.3%)
CIE-LABlab(33.93, 57.88, -30.98)
CIE-LCHlch(33.93, 65.65, 331.85°)
OKLaboklab(45.55% 0.1672 -0.0852)
OKLCHoklch(45.55% 0.188 333)
XYZxyz(15.4911, 7.9767, 21.8385)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1782 #178E23
analogous
#5E178E #8E1782 #8E1747
triadic
#8E1782 #828E17 #17828E
tetradic
#8E1782 #8E5E17 #178E23 #17478E
square
#8E1782 #8E5E17 #178E23 #17478E
split-complementary
#8E1782 #478E17 #178E5E
monochromatic
#250622 #590E52 #8E1782 #C320B2 #E03FD0

Accessibility & contrast

On white

8.09
#8E1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1782
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1782#FFFFFF#000000##FFFFFF
##8E17821.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4585
Deuteranopia (green-blind)
#43567F
Tritanopia (blue-blind)
#95264D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1782;
/* rgb */ color: rgb(142, 23, 130);
/* oklch */ color: oklch(45.6% 0.188 333.0);
Tailwind
colors: {
  custom: {
    50: '#b365a7',
    500: '#8e1782',
    950: '#000000',
  },
}
SCSS
$custom: #8e1782;
$custom-light: #b365a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1782",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 306.05,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45553,
    "c": 0.18769,
    "h": 333
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#8E1782
secondary
#40C04D
accent
#EF4B39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1782

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

Preview Lab → · Contrast checker → · Palette generator →

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