#8C177D#8C177D

#8C177D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.183 H 334.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#8C177D
RGBrgb(140, 23, 125)
HSLhsl(308, 72%, 32%)
HSVhsv(308, 84%, 55%)
CMYKcmyk(0%, 83.6%, 10.7%, 45.1%)
CIE-LABlab(33.29, 56.70, -28.90)
CIE-LCHlch(33.29, 63.64, 332.99°)
OKLaboklab(44.93% 0.1651 -0.0792)
OKLCHoklch(44.93% 0.183 334.4)
XYZxyz(14.8235, 7.6703, 20.0979)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C177D #178C26
analogous
#61178C #8C177D #8C1743
triadic
#8C177D #7D8C17 #177D8C
tetradic
#8C177D #8C6117 #178C26 #17438C
square
#8C177D #8C6117 #178C26 #17438C
split-complementary
#8C177D #438C17 #178C61
monochromatic
#23061F #570E4E #8C177D #C120AC #DF3ECB

Accessibility & contrast

On white

8.29
#8C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C177D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C177D#FFFFFF#000000##FFFFFF
##8C177D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c177d;
/* rgb */ color: rgb(140, 23, 125);
/* oklch */ color: oklch(44.9% 0.183 334.4);
Tailwind
colors: {
  custom: {
    50: '#b165a3',
    500: '#8c177d',
    950: '#000000',
  },
}
SCSS
$custom: #8c177d;
$custom-light: #b165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c177d",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 307.692,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44932,
    "c": 0.18314,
    "h": 334.4
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#8C177D
secondary
#3FBF50
accent
#EF5139
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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