#8B168F#8B168F

#8B168F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.197 H 326.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8B168F
RGBrgb(139, 22, 143)
HSLhsl(298, 73%, 32%)
HSVhsv(298, 85%, 56%)
CMYKcmyk(2.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(34.08, 59.59, -38.83)
CIE-LCHlch(34.08, 71.13, 326.91°)
OKLaboklab(45.8% 0.1643 -0.1081)
OKLCHoklch(45.8% 0.197 326.7)
XYZxyz(15.8920, 8.0471, 26.6975)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B168F #1A8F16
analogous
#4F168F #8B168F #8F1656
triadic
#8B168F #8F8B16 #168F8B
tetradic
#8B168F #8F4F16 #1A8F16 #16568F
square
#8B168F #8F4F16 #1A8F16 #16568F
split-complementary
#8B168F #568F16 #168F4F
monochromatic
#240625 #570E5A #8B168F #BF1EC4 #DC3EE1

Accessibility & contrast

On white

8.05
#8B168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8B168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B168F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B168F#FFFFFF#000000##FFFFFF
##8B168F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8F2E55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b168f;
/* rgb */ color: rgb(139, 22, 143);
/* oklch */ color: oklch(45.8% 0.197 326.7);
Tailwind
colors: {
  custom: {
    50: '#b165b0',
    500: '#8b168f',
    950: '#000000',
  },
}
SCSS
$custom: #8b168f;
$custom-light: #b165b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b168f",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 298.017,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45803,
    "c": 0.19666,
    "h": 326.7
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#8B168F
secondary
#44C13F
accent
#F0383E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B168F

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

Preview Lab → · Contrast checker → · Palette generator →

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