#8C168E#8C168E

#8C168E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.196 H 327.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8C168E
RGBrgb(140, 22, 142)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 85%, 56%)
CMYKcmyk(1.4%, 84.5%, 0%, 44.3%)
CIE-LABlab(34.20, 59.62, -38.02)
CIE-LCHlch(34.20, 70.71, 327.47°)
OKLaboklab(45.9% 0.1655 -0.1057)
OKLCHoklch(45.9% 0.196 327.4)
XYZxyz(15.9844, 8.1035, 26.3082)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C168E #188E16
analogous
#50168E #8C168E #8E1654
triadic
#8C168E #8E8C16 #168E8C
tetradic
#8C168E #8E5016 #188E16 #16548E
square
#8C168E #8E5016 #188E16 #16548E
split-complementary
#8C168E #548E16 #168E50
monochromatic
#240624 #580E59 #8C168E #C01EC3 #DE3DE1

Accessibility & contrast

On white

8.01
#8C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8C168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C168E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C168E#FFFFFF#000000##FFFFFF
##8C168E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#902E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c168e;
/* rgb */ color: rgb(140, 22, 142);
/* oklch */ color: oklch(45.9% 0.196 327.4);
Tailwind
colors: {
  custom: {
    50: '#b265af',
    500: '#8c168e',
    950: '#000000',
  },
}
SCSS
$custom: #8c168e;
$custom-light: #b265af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c168e",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 299,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.459,
    "c": 0.19633,
    "h": 327.4
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#8C168E
secondary
#41C13F
accent
#F0383B
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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