#8B167A#8B167A

#8B167A is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.181 H 335.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#8B167A
RGBrgb(139, 22, 122)
HSLhsl(309, 73%, 32%)
HSVhsv(309, 84%, 55%)
CMYKcmyk(0%, 84.2%, 12.2%, 45.5%)
CIE-LABlab(32.85, 56.27, -27.71)
CIE-LCHlch(32.85, 62.72, 333.78°)
OKLaboklab(44.54% 0.1647 -0.0758)
OKLCHoklch(44.54% 0.181 335.3)
XYZxyz(14.4474, 7.4693, 19.0894)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B167A #168B27
analogous
#62168B #8B167A #8B1640
triadic
#8B167A #7A8B16 #167A8B
tetradic
#8B167A #8B6216 #168B27 #16408B
square
#8B167A #8B6216 #168B27 #16408B
split-complementary
#8B167A #408B16 #168B62
monochromatic
#21051D #560E4C #8B167A #C01EA8 #E03BC8

Accessibility & contrast

On white

8.42
#8B167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#8B167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B167A
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B167A#FFFFFF#000000##FFFFFF
##8B167A1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427D
Deuteranopia (green-blind)
#445377
Tritanopia (blue-blind)
#922249
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8b167a;
/* rgb */ color: rgb(139, 22, 122);
/* oklch */ color: oklch(44.5% 0.181 335.3);
Tailwind
colors: {
  custom: {
    50: '#b164a1',
    500: '#8b167a',
    950: '#000000',
  },
}
SCSS
$custom: #8b167a;
$custom-light: #b164a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b167a",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 308.718,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44535,
    "c": 0.18132,
    "h": 335.3
  },
  "luminance": 0.07468
}

Semantic roles & 50–950 ramp

primary
#8B167A
secondary
#3EBF51
accent
#EF5338
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8B167A

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

Preview Lab → · Contrast checker → · Palette generator →

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