#8B178C#8B178C

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

Color values

HEX#8B178C
RGBrgb(139, 23, 140)
HSLhsl(299, 72%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(0.7%, 83.6%, 0%, 45.1%)
CIE-LABlab(33.98, 58.86, -37.15)
CIE-LCHlch(33.98, 69.60, 327.74°)
OKLaboklab(45.67% 0.1638 -0.1032)
OKLCHoklch(45.67% 0.194 327.8)
XYZxyz(15.6873, 7.9964, 25.5231)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B178C #188C17
analogous
#51178C #8B178C #8C1753
triadic
#8B178C #8C8B17 #178C8B
tetradic
#8B178C #8C5117 #188C17 #17538C
square
#8B178C #8C5117 #188C17 #17538C
split-complementary
#8B178C #538C17 #178C51
monochromatic
#230623 #570E57 #8B178C #BF20C1 #DE3EDF

Accessibility & contrast

On white

8.08
#8B178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8B178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B178C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B178C#FFFFFF#000000##FFFFFF
##8B178C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8F2D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b178c;
/* rgb */ color: rgb(139, 23, 140);
/* oklch */ color: oklch(45.7% 0.194 327.8);
Tailwind
colors: {
  custom: {
    50: '#b165ae',
    500: '#8b178c',
    950: '#000000',
  },
}
SCSS
$custom: #8b178c;
$custom-light: #b165ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8b178c",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 299.487,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45669,
    "c": 0.19364,
    "h": 327.8
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#8B178C
secondary
#40BF3F
accent
#EF393B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B178C

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

Preview Lab → · Contrast checker → · Palette generator →

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