#8C157E#8C157E

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

Color values

HEX#8C157E
RGBrgb(140, 21, 126)
HSLhsl(307, 74%, 32%)
HSVhsv(307, 85%, 55%)
CMYKcmyk(0%, 85%, 10%, 45.1%)
CIE-LABlab(33.18, 57.32, -29.70)
CIE-LCHlch(33.18, 64.56, 332.61°)
OKLaboklab(44.87% 0.1665 -0.0815)
OKLCHoklch(44.87% 0.185 333.9)
XYZxyz(14.8494, 7.6195, 20.4233)
Luminance0.0762 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C157E #158C23
analogous
#5F158C #8C157E #8C1543
triadic
#8C157E #7E8C15 #157E8C
tetradic
#8C157E #8C5F15 #158C23 #15438C
square
#8C157E #8C5F15 #158C23 #15438C
split-complementary
#8C157E #438C15 #158C5F
monochromatic
#22051E #570D4E #8C157E #C11DAE #E13ACE

Accessibility & contrast

On white

8.32
#8C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8C157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C157E
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C157E#FFFFFF#000000##FFFFFF
##8C157E1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#93234B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c157e;
/* rgb */ color: rgb(140, 21, 126);
/* oklch */ color: oklch(44.9% 0.185 333.9);
Tailwind
colors: {
  custom: {
    50: '#b164a4',
    500: '#8c157e',
    950: '#000000',
  },
}
SCSS
$custom: #8c157e;
$custom-light: #b164a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c157e",
  "rgb": {
    "r": 140,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 307.059,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44873,
    "c": 0.18542,
    "h": 333.9
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#8C157E
secondary
#3DC04C
accent
#F14D37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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