#8B178E#8B178E

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

Color values

HEX#8B178E
RGBrgb(139, 23, 142)
HSLhsl(298, 72%, 32%)
HSVhsv(298, 84%, 56%)
CMYKcmyk(2.1%, 83.8%, 0%, 44.3%)
CIE-LABlab(34.10, 59.19, -38.19)
CIE-LCHlch(34.10, 70.44, 327.17°)
OKLaboklab(45.8% 0.1637 -0.1062)
OKLCHoklch(45.8% 0.195 327)
XYZxyz(15.8361, 8.0559, 26.3068)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B178E #1A8E17
analogous
#4F178E #8B178E #8E1756
triadic
#8B178E #8E8B17 #178E8B
tetradic
#8B178E #8E4F17 #1A8E17 #17568E
square
#8B178E #8E4F17 #1A8E17 #17568E
split-complementary
#8B178E #568E17 #178E4F
monochromatic
#240625 #570E59 #8B178E #BF20C3 #DC3FE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B178E#FFFFFF#000000##FFFFFF
##8B178E1.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)
#004791
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8F2E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b178e;
/* rgb */ color: rgb(139, 23, 142);
/* oklch */ color: oklch(45.8% 0.195 327.0);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8b178e',
    950: '#000000',
  },
}
SCSS
$custom: #8b178e;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b178e",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 298.487,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.19516,
    "h": 327
  },
  "luminance": 0.08055
}

Semantic roles & 50–950 ramp

primary
#8B178E
secondary
#44C040
accent
#EF393E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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