#8B168E#8B168E

#8B168E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.196 H 327.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#8B168E
RGBrgb(139, 22, 142)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 85%, 56%)
CMYKcmyk(2.1%, 84.5%, 0%, 44.3%)
CIE-LABlab(34.02, 59.42, -38.32)
CIE-LCHlch(34.02, 70.71, 327.19°)
OKLaboklab(45.74% 0.1644 -0.1066)
OKLCHoklch(45.74% 0.196 327)
XYZxyz(15.8166, 8.0169, 26.3003)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B168E #198E16
analogous
#4F168E #8B168E #8E1655
triadic
#8B168E #8E8B16 #168E8B
tetradic
#8B168E #8E4F16 #198E16 #16558E
square
#8B168E #8E4F16 #198E16 #16558E
split-complementary
#8B168E #558E16 #168E4F
monochromatic
#230624 #570E59 #8B168E #BF1EC3 #DD3DE1

Accessibility & contrast

On white

8.07
#8B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8B168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B168E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B168E#FFFFFF#000000##FFFFFF
##8B168E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#38558B
Tritanopia (blue-blind)
#8F2E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b168e;
/* rgb */ color: rgb(139, 22, 142);
/* oklch */ color: oklch(45.7% 0.196 327.0);
Tailwind
colors: {
  custom: {
    50: '#b165af',
    500: '#8b168e',
    950: '#000000',
  },
}
SCSS
$custom: #8b168e;
$custom-light: #b165af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b168e",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 298.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45739,
    "c": 0.19591,
    "h": 327
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#8B168E
secondary
#42C13F
accent
#F0383D
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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