#8B177D#8B177D

#8B177D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.183 H 334.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#8B177D
RGBrgb(139, 23, 125)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 83%, 55%)
CMYKcmyk(0%, 83.5%, 10.1%, 45.5%)
CIE-LABlab(33.10, 56.48, -29.20)
CIE-LCHlch(33.10, 63.58, 332.66°)
OKLaboklab(44.77% 0.1641 -0.0801)
OKLCHoklch(44.77% 0.183 334)
XYZxyz(14.6557, 7.5838, 20.0900)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B177D #178B25
analogous
#5F178B #8B177D #8B1743
triadic
#8B177D #7D8B17 #177D8B
tetradic
#8B177D #8B5F17 #178B25 #17438B
square
#8B177D #8B5F17 #178B25 #17438B
split-complementary
#8B177D #438B17 #178B5F
monochromatic
#22061F #560E4E #8B177D #C020AC #DF3DCB

Accessibility & contrast

On white

8.35
#8B177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8B177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B177D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B177D#FFFFFF#000000##FFFFFF
##8B177D1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134380
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#92244B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b177d;
/* rgb */ color: rgb(139, 23, 125);
/* oklch */ color: oklch(44.8% 0.183 334.0);
Tailwind
colors: {
  custom: {
    50: '#b165a3',
    500: '#8b177d',
    950: '#000000',
  },
}
SCSS
$custom: #8b177d;
$custom-light: #b165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b177d",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 307.241,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44765,
    "c": 0.18262,
    "h": 334
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#8B177D
secondary
#3FBF4F
accent
#EE4F39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B177D

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

Preview Lab → · Contrast checker → · Palette generator →

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