#8C177F#8C177F

#8C177F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.185 H 333.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8C177F
RGBrgb(140, 23, 127)
HSLhsl(307, 72%, 32%)
HSVhsv(307, 84%, 55%)
CMYKcmyk(0%, 83.6%, 9.3%, 45.1%)
CIE-LABlab(33.40, 57.00, -29.98)
CIE-LCHlch(33.40, 64.40, 332.26°)
OKLaboklab(45.05% 0.1652 -0.0824)
OKLCHoklch(45.05% 0.185 333.5)
XYZxyz(14.9525, 7.7219, 20.7775)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C177F #178C24
analogous
#5F178C #8C177F #8C1744
triadic
#8C177F #7F8C17 #177F8C
tetradic
#8C177F #8C5F17 #178C24 #17448C
square
#8C177F #8C5F17 #178C24 #17448C
split-complementary
#8C177F #448C17 #178C5F
monochromatic
#230620 #570E4F #8C177F #C120AF #DF3ECD

Accessibility & contrast

On white

8.25
#8C177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C177F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C177F#FFFFFF#000000##FFFFFF
##8C177F1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#93254C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c177f;
/* rgb */ color: rgb(140, 23, 127);
/* oklch */ color: oklch(45.0% 0.185 333.5);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8c177f',
    950: '#000000',
  },
}
SCSS
$custom: #8c177f;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c177f",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 306.667,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.18455,
    "h": 333.5
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#8C177F
secondary
#3FBF4E
accent
#EF4D39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C177F

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

Preview Lab → · Contrast checker → · Palette generator →

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