#8C157A#8C157A

#8C157A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.183 H 335.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#8C157A
RGBrgb(140, 21, 122)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 55%)
CMYKcmyk(0%, 85%, 12.9%, 45.1%)
CIE-LABlab(32.96, 56.73, -27.53)
CIE-LCHlch(32.96, 63.05, 334.11°)
OKLaboklab(44.65% 0.1664 -0.0753)
OKLCHoklch(44.65% 0.183 335.7)
XYZxyz(14.5965, 7.5183, 19.0910)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C157A #158C27
analogous
#63158C #8C157A #8C153F
triadic
#8C157A #7A8C15 #157A8C
tetradic
#8C157A #8C6315 #158C27 #153F8C
square
#8C157A #8C6315 #158C27 #153F8C
split-complementary
#8C157A #3F8C15 #158C63
monochromatic
#22051D #570D4C #8C157A #C11DA8 #E13AC8

Accessibility & contrast

On white

8.39
#8C157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8C157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C157A
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C157A#FFFFFF#000000##FFFFFF
##8C157A1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427D
Deuteranopia (green-blind)
#445477
Tritanopia (blue-blind)
#932148
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8c157a;
/* rgb */ color: rgb(140, 21, 122);
/* oklch */ color: oklch(44.6% 0.183 335.7);
Tailwind
colors: {
  custom: {
    50: '#b164a1',
    500: '#8c157a',
    950: '#000000',
  },
}
SCSS
$custom: #8c157a;
$custom-light: #b164a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c157a",
  "rgb": {
    "r": 140,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 309.076,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44646,
    "c": 0.18263,
    "h": 335.7
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#8C157A
secondary
#3DC051
accent
#F15337
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8C157A

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

Preview Lab → · Contrast checker → · Palette generator →

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