#8C167B#8C167B

#8C167B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.183 H 335.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#8C167B
RGBrgb(140, 22, 123)
HSLhsl(309, 73%, 32%)
HSVhsv(309, 84%, 55%)
CMYKcmyk(0%, 84.3%, 12.1%, 45.1%)
CIE-LABlab(33.09, 56.64, -27.95)
CIE-LCHlch(33.09, 63.16, 333.74°)
OKLaboklab(44.76% 0.1657 -0.0765)
OKLCHoklch(44.76% 0.183 335.2)
XYZxyz(14.6775, 7.5807, 19.4253)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C167B #168C27
analogous
#62168C #8C167B #8C1640
triadic
#8C167B #7B8C16 #167B8C
tetradic
#8C167B #8C6216 #168C27 #16408C
square
#8C167B #8C6216 #168C27 #16408C
split-complementary
#8C167B #408C16 #168C62
monochromatic
#22051E #570E4D #8C167B #C11EA9 #E03CC9

Accessibility & contrast

On white

8.35
#8C167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C167B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C167B#FFFFFF#000000##FFFFFF
##8C167B1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437E
Deuteranopia (green-blind)
#445478
Tritanopia (blue-blind)
#932249
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c167b;
/* rgb */ color: rgb(140, 22, 123);
/* oklch */ color: oklch(44.8% 0.183 335.2);
Tailwind
colors: {
  custom: {
    50: '#b165a1',
    500: '#8c167b',
    950: '#000000',
  },
}
SCSS
$custom: #8c167b;
$custom-light: #b165a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c167b",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 308.644,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4476,
    "c": 0.18254,
    "h": 335.2
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#8C167B
secondary
#3EC051
accent
#F05338
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8C167B

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

Preview Lab → · Contrast checker → · Palette generator →

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