#8B178D#8B178D

#8B178D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.194 H 327.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8B178D
RGBrgb(139, 23, 141)
HSLhsl(299, 72%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(1.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(34.04, 59.02, -37.67)
CIE-LCHlch(34.04, 70.02, 327.45°)
OKLaboklab(45.73% 0.1638 -0.1047)
OKLCHoklch(45.73% 0.194 327.4)
XYZxyz(15.7613, 8.0260, 25.9132)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B178D #198D17
analogous
#50178D #8B178D #8D1754
triadic
#8B178D #8D8B17 #178D8B
tetradic
#8B178D #8D5017 #198D17 #17548D
square
#8B178D #8D5017 #198D17 #17548D
split-complementary
#8B178D #548D17 #178D50
monochromatic
#230624 #570E58 #8B178D #BF20C2 #DD3FE0

Accessibility & contrast

On white

8.06
#8B178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B178D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B178D#FFFFFF#000000##FFFFFF
##8B178D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#39558A
Tritanopia (blue-blind)
#8F2E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b178d;
/* rgb */ color: rgb(139, 23, 141);
/* oklch */ color: oklch(45.7% 0.194 327.4);
Tailwind
colors: {
  custom: {
    50: '#b165af',
    500: '#8b178d',
    950: '#000000',
  },
}
SCSS
$custom: #8b178d;
$custom-light: #b165af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b178d",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 298.983,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45732,
    "c": 0.1944,
    "h": 327.4
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#8B178D
secondary
#42C040
accent
#EF393C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B178D

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

Preview Lab → · Contrast checker → · Palette generator →

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