#8C167D#8C167D

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

Color values

HEX#8C167D
RGBrgb(140, 22, 125)
HSLhsl(308, 73%, 32%)
HSVhsv(308, 84%, 55%)
CMYKcmyk(0%, 84.3%, 10.7%, 45.1%)
CIE-LABlab(33.20, 56.94, -29.03)
CIE-LCHlch(33.20, 63.91, 332.99°)
OKLaboklab(44.87% 0.1658 -0.0796)
OKLCHoklch(44.87% 0.184 334.4)
XYZxyz(14.8040, 7.6313, 20.0914)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C167D #168C25
analogous
#60168C #8C167D #8C1642
triadic
#8C167D #7D8C16 #167D8C
tetradic
#8C167D #8C6016 #168C25 #16428C
square
#8C167D #8C6016 #168C25 #16428C
split-complementary
#8C167D #428C16 #168C60
monochromatic
#22051F #570E4E #8C167D #C11EAC #E03CCB

Accessibility & contrast

On white

8.31
#8C167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8C167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C167D
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C167D#FFFFFF#000000##FFFFFF
##8C167D1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134380
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#93234A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8c167d;
/* rgb */ color: rgb(140, 22, 125);
/* oklch */ color: oklch(44.9% 0.184 334.4);
Tailwind
colors: {
  custom: {
    50: '#b165a3',
    500: '#8c167d',
    950: '#000000',
  },
}
SCSS
$custom: #8c167d;
$custom-light: #b165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c167d",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 307.627,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44873,
    "c": 0.18394,
    "h": 334.4
  },
  "luminance": 0.0763
}

Semantic roles & 50–950 ramp

primary
#8C167D
secondary
#3EC04F
accent
#F05038
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C167D

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

Preview Lab → · Contrast checker → · Palette generator →

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