#8C117A#8C117A

#8C117A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.186 H 335.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#8C117A
RGBrgb(140, 17, 122)
HSLhsl(309, 78%, 31%)
HSVhsv(309, 88%, 55%)
CMYKcmyk(0%, 87.9%, 12.9%, 45.1%)
CIE-LABlab(32.66, 57.59, -27.99)
CIE-LCHlch(32.66, 64.03, 334.07°)
OKLaboklab(44.44% 0.169 -0.0766)
OKLCHoklch(44.44% 0.186 335.6)
XYZxyz(14.5288, 7.3829, 19.0685)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C117A #118C23
analogous
#60118C #8C117A #8C113D
triadic
#8C117A #7A8C11 #117A8C
tetradic
#8C117A #8C6011 #118C23 #113D8C
square
#8C117A #8C6011 #118C23 #113D8C
split-complementary
#8C117A #3D8C11 #118C60
monochromatic
#1F041B #550A4A #8C117A #C318AA #E631CC

Accessibility & contrast

On white

8.48
#8C117A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8C117A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C117A
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C117A#FFFFFF#000000##FFFFFF
##8C117A1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#435377
Tritanopia (blue-blind)
#941F48
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8c117a;
/* rgb */ color: rgb(140, 17, 122);
/* oklch */ color: oklch(44.4% 0.186 335.6);
Tailwind
colors: {
  custom: {
    50: '#b263a1',
    500: '#8c117a',
    950: '#000000',
  },
}
SCSS
$custom: #8c117a;
$custom-light: #b263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c117a",
  "rgb": {
    "r": 140,
    "g": 17,
    "b": 122
  },
  "hsl": {
    "h": 308.78,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.44435,
    "c": 0.18551,
    "h": 335.6
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#8C117A
secondary
#38C14C
accent
#F54F33
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8C117A

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

Preview Lab → · Contrast checker → · Palette generator →

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