#8C157F#8C157F

#8C157F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.186 H 333.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8C157F
RGBrgb(140, 21, 127)
HSLhsl(307, 74%, 32%)
HSVhsv(307, 85%, 55%)
CMYKcmyk(0%, 85%, 9.3%, 45.1%)
CIE-LABlab(33.23, 57.47, -30.24)
CIE-LCHlch(33.23, 64.94, 332.25°)
OKLaboklab(44.93% 0.1666 -0.0831)
OKLCHoklch(44.93% 0.186 333.5)
XYZxyz(14.9143, 7.6454, 20.7648)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C157F #158C22
analogous
#5E158C #8C157F #8C1544
triadic
#8C157F #7F8C15 #157F8C
tetradic
#8C157F #8C5E15 #158C22 #15448C
square
#8C157F #8C5E15 #158C22 #15448C
split-complementary
#8C157F #448C15 #158C5E
monochromatic
#22051E #570D4F #8C157F #C11DAF #E13ACF

Accessibility & contrast

On white

8.30
#8C157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C157F
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C157F#FFFFFF#000000##FFFFFF
##8C157F1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4482
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#93244B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c157f;
/* rgb */ color: rgb(140, 21, 127);
/* oklch */ color: oklch(44.9% 0.186 333.5);
Tailwind
colors: {
  custom: {
    50: '#b164a4',
    500: '#8c157f',
    950: '#000000',
  },
}
SCSS
$custom: #8c157f;
$custom-light: #b164a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c157f",
  "rgb": {
    "r": 140,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 306.555,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4493,
    "c": 0.18613,
    "h": 333.5
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#8C157F
secondary
#3DC04B
accent
#F14B37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C157F

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

Preview Lab → · Contrast checker → · Palette generator →

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