#8C178C#8C178C

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

Color values

HEX#8C178C
RGBrgb(140, 23, 140)
HSLhsl(300, 72%, 32%)
HSVhsv(300, 84%, 55%)
CMYKcmyk(0%, 83.6%, 0%, 45.1%)
CIE-LABlab(34.15, 59.06, -36.85)
CIE-LCHlch(34.15, 69.61, 328.03°)
OKLaboklab(45.83% 0.1649 -0.1023)
OKLCHoklch(45.83% 0.194 328.2)
XYZxyz(15.8551, 8.0829, 25.5309)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C178C #178C17
analogous
#52178C #8C178C #8C1752
triadic
#8C178C #8C8C17 #178C8C
tetradic
#8C178C #8C5217 #178C17 #17528C
square
#8C178C #8C5217 #178C17 #17528C
split-complementary
#8C178C #528C17 #178C52
monochromatic
#230623 #570E57 #8C178C #C120C1 #DF3EDF

Accessibility & contrast

On white

8.03
#8C178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8C178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C178C
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C178C#FFFFFF#000000##FFFFFF
##8C178C1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#912D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c178c;
/* rgb */ color: rgb(140, 23, 140);
/* oklch */ color: oklch(45.8% 0.194 328.2);
Tailwind
colors: {
  custom: {
    50: '#b166ae',
    500: '#8c178c',
    950: '#000000',
  },
}
SCSS
$custom: #8c178c;
$custom-light: #b166ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8c178c",
  "rgb": {
    "r": 140,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 300,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4583,
    "c": 0.19408,
    "h": 328.2
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#8C178C
secondary
#3FBF3F
accent
#EF3939
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C178C

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

Preview Lab → · Contrast checker → · Palette generator →

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