#8C178B#8C178B

#8C178B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.193 H 328.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8C178B
RGBrgb(140, 23, 139)
HSLhsl(301, 72%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 83.6%, 0.7%, 45.1%)
CIE-LABlab(34.09, 58.89, -36.33)
CIE-LCHlch(34.09, 69.20, 328.33°)
OKLaboklab(45.77% 0.165 -0.1008)
OKLCHoklch(45.77% 0.193 328.6)
XYZxyz(15.7817, 8.0535, 25.1444)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C178B #178C18
analogous
#53178C #8C178B #8C1751
triadic
#8C178B #8B8C17 #178B8C
tetradic
#8C178B #8C5317 #178C18 #17518C
square
#8C178B #8C5317 #178C18 #17518C
split-complementary
#8C178B #518C17 #178C53
monochromatic
#230623 #570E57 #8C178B #C120BF #DF3EDE

Accessibility & contrast

On white

8.04
#8C178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8C178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C178B
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C178B#FFFFFF#000000##FFFFFF
##8C178B1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#912C53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c178b;
/* rgb */ color: rgb(140, 23, 139);
/* oklch */ color: oklch(45.8% 0.193 328.6);
Tailwind
colors: {
  custom: {
    50: '#b166ad',
    500: '#8c178b',
    950: '#000000',
  },
}
SCSS
$custom: #8c178b;
$custom-light: #b166ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8c178b",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 300.513,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.19333,
    "h": 328.6
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#8C178B
secondary
#3FBF40
accent
#EF3B39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C178B

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

Preview Lab → · Contrast checker → · Palette generator →

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