#8E1785#8E1785

#8E1785 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.190 H 331.8°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8E1785
RGBrgb(142, 23, 133)
HSLhsl(305, 72%, 32%)
HSVhsv(305, 84%, 56%)
CMYKcmyk(0%, 83.8%, 6.3%, 44.3%)
CIE-LABlab(34.10, 58.35, -32.58)
CIE-LCHlch(34.10, 66.83, 330.82°)
OKLaboklab(45.73% 0.1672 -0.0898)
OKLCHoklch(45.73% 0.19 331.8)
XYZxyz(15.6954, 8.0584, 22.9145)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1785 #178E20
analogous
#5C178E #8E1785 #8E1749
triadic
#8E1785 #858E17 #17858E
tetradic
#8E1785 #8E5C17 #178E20 #17498E
square
#8E1785 #8E5C17 #178E20 #17498E
split-complementary
#8E1785 #498E17 #178E5C
monochromatic
#250622 #590E54 #8E1785 #C320B6 #E03FD4

Accessibility & contrast

On white

8.04
#8E1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1785
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1785#FFFFFF#000000##FFFFFF
##8E17851.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074688
Deuteranopia (green-blind)
#415682
Tritanopia (blue-blind)
#94284F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1785;
/* rgb */ color: rgb(142, 23, 133);
/* oklch */ color: oklch(45.7% 0.190 331.8);
Tailwind
colors: {
  custom: {
    50: '#b366a9',
    500: '#8e1785',
    950: '#000000',
  },
}
SCSS
$custom: #8e1785;
$custom-light: #b366a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1785",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 304.538,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45729,
    "c": 0.18984,
    "h": 331.8
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#8E1785
secondary
#40C04A
accent
#EF4739
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1785

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

Preview Lab → · Contrast checker → · Palette generator →

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