#8E1783#8E1783

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

Color values

HEX#8E1783
RGBrgb(142, 23, 131)
HSLhsl(306, 72%, 32%)
HSVhsv(306, 84%, 56%)
CMYKcmyk(0%, 83.8%, 7.7%, 44.3%)
CIE-LABlab(33.99, 58.04, -31.51)
CIE-LCHlch(33.99, 66.04, 331.50°)
OKLaboklab(45.61% 0.1672 -0.0867)
OKLCHoklch(45.61% 0.188 332.6)
XYZxyz(15.5585, 8.0036, 22.1938)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1783 #178E22
analogous
#5D178E #8E1783 #8E1748
triadic
#8E1783 #838E17 #17838E
tetradic
#8E1783 #8E5D17 #178E22 #17488E
square
#8E1783 #8E5D17 #178E22 #17488E
split-complementary
#8E1783 #488E17 #178E5D
monochromatic
#250622 #590E52 #8E1783 #C320B4 #E03FD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1783#FFFFFF#000000##FFFFFF
##8E17831.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)
#0C4586
Deuteranopia (green-blind)
#425680
Tritanopia (blue-blind)
#95274E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1783;
/* rgb */ color: rgb(142, 23, 131);
/* oklch */ color: oklch(45.6% 0.188 332.6);
Tailwind
colors: {
  custom: {
    50: '#b366a7',
    500: '#8e1783',
    950: '#000000',
  },
}
SCSS
$custom: #8e1783;
$custom-light: #b366a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1783",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 305.546,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45611,
    "c": 0.1884,
    "h": 332.6
  },
  "luminance": 0.08002
}

Semantic roles & 50–950 ramp

primary
#8E1783
secondary
#40C04C
accent
#EF4A39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1783

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

Preview Lab → · Contrast checker → · Palette generator →

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