#8B168B#8B168B

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

Color values

HEX#8B168B
RGBrgb(139, 22, 139)
HSLhsl(300, 73%, 32%)
HSVhsv(300, 84%, 55%)
CMYKcmyk(0%, 84.2%, 0%, 45.5%)
CIE-LABlab(33.83, 58.93, -36.76)
CIE-LCHlch(33.83, 69.45, 328.04°)
OKLaboklab(45.55% 0.1646 -0.1021)
OKLCHoklch(45.55% 0.194 328.2)
XYZxyz(15.5944, 7.9281, 25.1300)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B168B #168B16
analogous
#51168B #8B168B #8B1651
triadic
#8B168B #8B8B16 #168B8B
tetradic
#8B168B #8B5116 #168B16 #16518B
square
#8B168B #8B5116 #168B16 #16518B
split-complementary
#8B168B #518B16 #168B51
monochromatic
#210521 #560E56 #8B168B #C01EC0 #E03BE0

Accessibility & contrast

On white

8.12
#8B168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8B168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B168B
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B168B#FFFFFF#000000##FFFFFF
##8B168B1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3A5588
Tritanopia (blue-blind)
#902C52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b168b;
/* rgb */ color: rgb(139, 22, 139);
/* oklch */ color: oklch(45.5% 0.194 328.2);
Tailwind
colors: {
  custom: {
    50: '#b165ad',
    500: '#8b168b',
    950: '#000000',
  },
}
SCSS
$custom: #8b168b;
$custom-light: #b165ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b168b",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45548,
    "c": 0.19365,
    "h": 328.2
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#8B168B
secondary
#3EBF3E
accent
#EF3838
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B168B

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

Preview Lab → · Contrast checker → · Palette generator →

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