#8B177F#8B177F

#8B177F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.184 H 333.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8B177F
RGBrgb(139, 23, 127)
HSLhsl(306, 72%, 32%)
HSVhsv(306, 83%, 55%)
CMYKcmyk(0%, 83.5%, 8.6%, 45.5%)
CIE-LABlab(33.21, 56.78, -30.28)
CIE-LCHlch(33.21, 64.35, 331.93°)
OKLaboklab(44.88% 0.1641 -0.0833)
OKLCHoklch(44.88% 0.184 333.1)
XYZxyz(14.7847, 7.6354, 20.7697)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B177F #178B23
analogous
#5D178B #8B177F #8B1745
triadic
#8B177F #7F8B17 #177F8B
tetradic
#8B177F #8B5D17 #178B23 #17458B
square
#8B177F #8B5D17 #178B23 #17458B
split-complementary
#8B177F #458B17 #178B5D
monochromatic
#22061F #560E4F #8B177F #C020AF #DF3DCE

Accessibility & contrast

On white

8.31
#8B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B177F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B177F#FFFFFF#000000##FFFFFF
##8B177F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4482
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#92264C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b177f;
/* rgb */ color: rgb(139, 23, 127);
/* oklch */ color: oklch(44.9% 0.184 333.1);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8b177f',
    950: '#000000',
  },
}
SCSS
$custom: #8b177f;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b177f",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 306.207,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4488,
    "c": 0.18405,
    "h": 333.1
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#8B177F
secondary
#3FBF4C
accent
#EE4C39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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