#8B177E#8B177E

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

Color values

HEX#8B177E
RGBrgb(139, 23, 126)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 83%, 55%)
CMYKcmyk(0%, 83.5%, 9.4%, 45.5%)
CIE-LABlab(33.16, 56.63, -29.74)
CIE-LCHlch(33.16, 63.97, 332.29°)
OKLaboklab(44.82% 0.1641 -0.0817)
OKLCHoklch(44.82% 0.183 333.5)
XYZxyz(14.7199, 7.6094, 20.4281)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B177E #178B24
analogous
#5E178B #8B177E #8B1744
triadic
#8B177E #7E8B17 #177E8B
tetradic
#8B177E #8B5E17 #178B24 #17448B
square
#8B177E #8B5E17 #178B24 #17448B
split-complementary
#8B177E #448B17 #178B5E
monochromatic
#22061F #560E4E #8B177E #C020AE #DF3DCD

Accessibility & contrast

On white

8.33
#8B177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B177E
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B177E#FFFFFF#000000##FFFFFF
##8B177E1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114481
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#92254B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b177e;
/* rgb */ color: rgb(139, 23, 126);
/* oklch */ color: oklch(44.8% 0.183 333.5);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8b177e',
    950: '#000000',
  },
}
SCSS
$custom: #8b177e;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b177e",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 306.724,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44823,
    "c": 0.18334,
    "h": 333.5
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#8B177E
secondary
#3FBF4E
accent
#EE4E39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B177E

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

Preview Lab → · Contrast checker → · Palette generator →

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