#8A167B#8A167B

#8A167B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.182 H 334.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#8A167B
RGBrgb(138, 22, 123)
HSLhsl(308, 73%, 31%)
HSVhsv(308, 84%, 54%)
CMYKcmyk(0%, 84.1%, 10.9%, 45.9%)
CIE-LABlab(32.72, 56.20, -28.56)
CIE-LCHlch(32.72, 63.04, 333.06°)
OKLaboklab(44.42% 0.1638 -0.0783)
OKLCHoklch(44.42% 0.182 334.4)
XYZxyz(14.3435, 7.4085, 19.4096)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A167B #168A25
analogous
#5F168A #8A167B #8A1641
triadic
#8A167B #7B8A16 #167B8A
tetradic
#8A167B #8A5F16 #168A25 #16418A
square
#8A167B #8A5F16 #168A25 #16418A
split-complementary
#8A167B #418A16 #168A5F
monochromatic
#20051D #550E4C #8A167B #BF1EAA #E03BCA

Accessibility & contrast

On white

8.46
#8A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#8A167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A167B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A167B#FFFFFF#000000##FFFFFF
##8A167B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427E
Deuteranopia (green-blind)
#425378
Tritanopia (blue-blind)
#912349
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a167b;
/* rgb */ color: rgb(138, 22, 123);
/* oklch */ color: oklch(44.4% 0.182 334.4);
Tailwind
colors: {
  custom: {
    50: '#b064a1',
    500: '#8a167b',
    950: '#000000',
  },
}
SCSS
$custom: #8a167b;
$custom-light: #b064a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a167b",
  "rgb": {
    "r": 138,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 307.759,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44423,
    "c": 0.18152,
    "h": 334.4
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#8A167B
secondary
#3EBE4F
accent
#EF5039
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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