#8B167E#8B167E

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

Color values

HEX#8B167E
RGBrgb(139, 22, 126)
HSLhsl(307, 73%, 32%)
HSVhsv(307, 84%, 55%)
CMYKcmyk(0%, 84.2%, 9.4%, 45.5%)
CIE-LABlab(33.07, 56.87, -29.88)
CIE-LCHlch(33.07, 64.24, 332.29°)
OKLaboklab(44.76% 0.1648 -0.0821)
OKLCHoklch(44.76% 0.184 333.5)
XYZxyz(14.7004, 7.5705, 20.4216)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B167E #168B23
analogous
#5E168B #8B167E #8B1644
triadic
#8B167E #7E8B16 #167E8B
tetradic
#8B167E #8B5E16 #168B23 #16448B
square
#8B167E #8B5E16 #168B23 #16448B
split-complementary
#8B167E #448B16 #168B5E
monochromatic
#21051E #560E4E #8B167E #C01EAE #E03BCE

Accessibility & contrast

On white

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

On black

2.51
#8B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8B167E#FFFFFF#000000##FFFFFF
##8B167E1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#92244B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b167e;
/* rgb */ color: rgb(139, 22, 126);
/* oklch */ color: oklch(44.8% 0.184 333.5);
Tailwind
colors: {
  custom: {
    50: '#b164a4',
    500: '#8b167e',
    950: '#000000',
  },
}
SCSS
$custom: #8b167e;
$custom-light: #b164a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b167e",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 306.667,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44763,
    "c": 0.18415,
    "h": 333.5
  },
  "luminance": 0.07569
}

Semantic roles & 50–950 ramp

primary
#8B167E
secondary
#3EBF4C
accent
#EF4D38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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