#8C177E#8C177E

#8C177E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 333.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8C177E
RGBrgb(140, 23, 126)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 84%, 55%)
CMYKcmyk(0%, 83.6%, 10%, 45.1%)
CIE-LABlab(33.34, 56.85, -29.44)
CIE-LCHlch(33.34, 64.02, 332.62°)
OKLaboklab(44.99% 0.1651 -0.0808)
OKLCHoklch(44.99% 0.184 333.9)
XYZxyz(14.8877, 7.6959, 20.4360)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C177E #178C25
analogous
#5F178C #8C177E #8C1744
triadic
#8C177E #7E8C17 #177E8C
tetradic
#8C177E #8C5F17 #178C25 #17448C
square
#8C177E #8C5F17 #178C25 #17448C
split-complementary
#8C177E #448C17 #178C5F
monochromatic
#23061F #570E4F #8C177E #C120AD #DF3ECC

Accessibility & contrast

On white

8.27
#8C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8C177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C177E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C177E#FFFFFF#000000##FFFFFF
##8C177E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124481
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#93254B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c177e;
/* rgb */ color: rgb(140, 23, 126);
/* oklch */ color: oklch(45.0% 0.184 333.9);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8c177e',
    950: '#000000',
  },
}
SCSS
$custom: #8c177e;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c177e",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 307.179,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44989,
    "c": 0.18384,
    "h": 333.9
  },
  "luminance": 0.07695
}

Semantic roles & 50–950 ramp

primary
#8C177E
secondary
#3FBF4F
accent
#EF4F39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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