#8B178F#8B178F

#8B178F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.196 H 326.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8B178F
RGBrgb(139, 23, 143)
HSLhsl(298, 72%, 33%)
HSVhsv(298, 84%, 56%)
CMYKcmyk(2.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(34.16, 59.35, -38.70)
CIE-LCHlch(34.16, 70.86, 326.89°)
OKLaboklab(45.86% 0.1636 -0.1077)
OKLCHoklch(45.86% 0.196 326.6)
XYZxyz(15.9115, 8.0861, 26.7040)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B178F #1B8F17
analogous
#4F178F #8B178F #8F1757
triadic
#8B178F #8F8B17 #178F8B
tetradic
#8B178F #8F4F17 #1B8F17 #17578F
square
#8B178F #8F4F17 #1B8F17 #17578F
split-complementary
#8B178F #578F17 #178F4F
monochromatic
#250626 #580F5A #8B178F #BE1FC4 #DB40E0

Accessibility & contrast

On white

8.02
#8B178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B178F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B178F#FFFFFF#000000##FFFFFF
##8B178F1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8F2F55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b178f;
/* rgb */ color: rgb(139, 23, 143);
/* oklch */ color: oklch(45.9% 0.196 326.6);
Tailwind
colors: {
  custom: {
    50: '#b166b0',
    500: '#8b178f',
    950: '#000000',
  },
}
SCSS
$custom: #8b178f;
$custom-light: #b166b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b178f",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 298,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4586,
    "c": 0.19591,
    "h": 326.6
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#8B178F
secondary
#45C141
accent
#EF393F
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B178F

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

Preview Lab → · Contrast checker → · Palette generator →

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