#8C157C#8C157C

#8C157C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.184 H 334.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#8C157C
RGBrgb(140, 21, 124)
HSLhsl(308, 74%, 32%)
HSVhsv(308, 85%, 55%)
CMYKcmyk(0%, 85%, 11.4%, 45.1%)
CIE-LABlab(33.07, 57.02, -28.62)
CIE-LCHlch(33.07, 63.80, 333.35°)
OKLaboklab(44.76% 0.1665 -0.0784)
OKLCHoklch(44.76% 0.184 334.8)
XYZxyz(14.7217, 7.5684, 19.7504)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C157C #158C25
analogous
#61158C #8C157C #8C1541
triadic
#8C157C #7C8C15 #157C8C
tetradic
#8C157C #8C6115 #158C25 #15418C
square
#8C157C #8C6115 #158C25 #15418C
split-complementary
#8C157C #418C15 #158C61
monochromatic
#22051E #570D4D #8C157C #C11DAB #E13ACB

Accessibility & contrast

On white

8.36
#8C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#8C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C157C
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C157C#FFFFFF#000000##FFFFFF
##8C157C1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#435479
Tritanopia (blue-blind)
#93224A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c157c;
/* rgb */ color: rgb(140, 21, 124);
/* oklch */ color: oklch(44.8% 0.184 334.8);
Tailwind
colors: {
  custom: {
    50: '#b164a2',
    500: '#8c157c',
    950: '#000000',
  },
}
SCSS
$custom: #8c157c;
$custom-light: #b164a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c157c",
  "rgb": {
    "r": 140,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 308.067,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44758,
    "c": 0.18402,
    "h": 334.8
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

primary
#8C157C
secondary
#3DC04F
accent
#F15037
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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