#8B177A#8B177A

#8B177A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.180 H 335.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#8B177A
RGBrgb(139, 23, 122)
HSLhsl(309, 72%, 32%)
HSVhsv(309, 83%, 55%)
CMYKcmyk(0%, 83.5%, 12.2%, 45.5%)
CIE-LABlab(32.94, 56.03, -27.58)
CIE-LCHlch(32.94, 62.44, 333.79°)
OKLaboklab(44.6% 0.164 -0.0755)
OKLCHoklch(44.6% 0.181 335.3)
XYZxyz(14.4669, 7.5083, 19.0959)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B177A #178B28
analogous
#62178B #8B177A #8B1740
triadic
#8B177A #7A8B17 #177A8B
tetradic
#8B177A #8B6217 #178B28 #17408B
square
#8B177A #8B6217 #178B28 #17408B
split-complementary
#8B177A #408B17 #178B62
monochromatic
#22061E #560E4C #8B177A #C020A8 #DF3DC7

Accessibility & contrast

On white

8.40
#8B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8B177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B177A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B177A#FFFFFF#000000##FFFFFF
##8B177A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#445377
Tritanopia (blue-blind)
#922349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8b177a;
/* rgb */ color: rgb(139, 23, 122);
/* oklch */ color: oklch(44.6% 0.180 335.3);
Tailwind
colors: {
  custom: {
    50: '#b165a1',
    500: '#8b177a',
    950: '#000000',
  },
}
SCSS
$custom: #8b177a;
$custom-light: #b165a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b177a",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 308.793,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44595,
    "c": 0.1805,
    "h": 335.3
  },
  "luminance": 0.07507
}

Semantic roles & 50–950 ramp

primary
#8B177A
secondary
#3FBF52
accent
#EE5439
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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