#8C168F#8C168F

#8C168F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 46.0% C 0.197 H 327.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8C168F
RGBrgb(140, 22, 143)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 85%, 56%)
CMYKcmyk(2.1%, 84.6%, 0%, 43.9%)
CIE-LABlab(34.26, 59.78, -38.54)
CIE-LCHlch(34.26, 71.13, 327.19°)
OKLaboklab(45.96% 0.1654 -0.1072)
OKLCHoklch(45.96% 0.197 327)
XYZxyz(16.0598, 8.1336, 26.7054)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C168F #198F16
analogous
#4F168F #8C168F #8F1656
triadic
#8C168F #8F8C16 #168F8C
tetradic
#8C168F #8F4F16 #198F16 #16568F
square
#8C168F #8F4F16 #198F16 #16568F
split-complementary
#8C168F #568F16 #168F4F
monochromatic
#240625 #580E5A #8C168F #C01EC4 #DD3EE1

Accessibility & contrast

On white

8.00
#8C168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8C168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C168F
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C168F#FFFFFF#000000##FFFFFF
##8C168F1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#39558C
Tritanopia (blue-blind)
#902E55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c168f;
/* rgb */ color: rgb(140, 22, 143);
/* oklch */ color: oklch(46.0% 0.197 327.0);
Tailwind
colors: {
  custom: {
    50: '#b265b0',
    500: '#8c168f',
    950: '#000000',
  },
}
SCSS
$custom: #8c168f;
$custom-light: #b265b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c168f",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 298.512,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.19709,
    "h": 327
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#8C168F
secondary
#43C13F
accent
#F0383C
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C168F

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

Preview Lab → · Contrast checker → · Palette generator →

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