#8C168A#8C168A

#8C168A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.193 H 329.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8C168A
RGBrgb(140, 22, 138)
HSLhsl(301, 73%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 84.3%, 1.4%, 45.1%)
CIE-LABlab(33.95, 58.97, -35.94)
CIE-LCHlch(33.95, 69.06, 328.64°)
OKLaboklab(45.65% 0.1657 -0.0996)
OKLCHoklch(45.65% 0.193 329)
XYZxyz(15.6894, 7.9855, 24.7548)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C168A #168C18
analogous
#53168C #8C168A #8C164F
triadic
#8C168A #8A8C16 #168A8C
tetradic
#8C168A #8C5316 #168C18 #164F8C
square
#8C168A #8C5316 #168C18 #164F8C
split-complementary
#8C168A #4F8C16 #168C53
monochromatic
#220522 #570E56 #8C168A #C11EBE #E03CDE

Accessibility & contrast

On white

8.09
#8C168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8C168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C168A
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C168A#FFFFFF#000000##FFFFFF
##8C168A1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3C5587
Tritanopia (blue-blind)
#912B52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c168a;
/* rgb */ color: rgb(140, 22, 138);
/* oklch */ color: oklch(45.6% 0.193 329.0);
Tailwind
colors: {
  custom: {
    50: '#b165ad',
    500: '#8c168a',
    950: '#000000',
  },
}
SCSS
$custom: #8c168a;
$custom-light: #b165ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8c168a",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 301.017,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45648,
    "c": 0.19336,
    "h": 329
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#8C168A
secondary
#3EC040
accent
#F03B38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C168A

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

Preview Lab → · Contrast checker → · Palette generator →

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