#8B168A#8B168A

#8B168A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.193 H 328.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8B168A
RGBrgb(139, 22, 138)
HSLhsl(301, 73%, 32%)
HSVhsv(301, 84%, 55%)
CMYKcmyk(0%, 84.2%, 0.7%, 45.5%)
CIE-LABlab(33.77, 58.77, -36.24)
CIE-LCHlch(33.77, 69.04, 328.34°)
OKLaboklab(45.49% 0.1646 -0.1005)
OKLCHoklch(45.49% 0.193 328.6)
XYZxyz(15.5217, 7.8990, 24.7470)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B168A #168B17
analogous
#52168B #8B168A #8B1650
triadic
#8B168A #8A8B16 #168A8B
tetradic
#8B168A #8B5216 #168B17 #16508B
square
#8B168A #8B5216 #168B17 #16508B
split-complementary
#8B168A #508B16 #168B52
monochromatic
#210521 #560E56 #8B168A #C01EBE #E03BDF

Accessibility & contrast

On white

8.14
#8B168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8B168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B168A
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B168A#FFFFFF#000000##FFFFFF
##8B168A1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3B5587
Tritanopia (blue-blind)
#902C52
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b168a;
/* rgb */ color: rgb(139, 22, 138);
/* oklch */ color: oklch(45.5% 0.193 328.6);
Tailwind
colors: {
  custom: {
    50: '#b165ad',
    500: '#8b168a',
    950: '#000000',
  },
}
SCSS
$custom: #8b168a;
$custom-light: #b165ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b168a",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 300.513,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45485,
    "c": 0.19291,
    "h": 328.6
  },
  "luminance": 0.07898
}

Semantic roles & 50–950 ramp

primary
#8B168A
secondary
#3EBF3F
accent
#EF3A38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B168A

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

Preview Lab → · Contrast checker → · Palette generator →

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