#8B168C#8B168C

#8B168C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.194 H 327.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#8B168C
RGBrgb(139, 22, 140)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(0.7%, 84.3%, 0%, 45.1%)
CIE-LABlab(33.89, 59.09, -37.28)
CIE-LCHlch(33.89, 69.87, 327.75°)
OKLaboklab(45.61% 0.1645 -0.1036)
OKLCHoklch(45.61% 0.194 327.8)
XYZxyz(15.6678, 7.9574, 25.5166)
Luminance0.0796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B168C #178C16
analogous
#50168C #8B168C #8C1652
triadic
#8B168C #8C8B16 #168C8B
tetradic
#8B168C #8C5016 #178C16 #16528C
square
#8B168C #8C5016 #178C16 #16528C
split-complementary
#8B168C #528C16 #168C50
monochromatic
#220522 #560E57 #8B168C #C01EC1 #DF3CE0

Accessibility & contrast

On white

8.10
#8B168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B168C
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B168C#FFFFFF#000000##FFFFFF
##8B168C1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8F2D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b168c;
/* rgb */ color: rgb(139, 22, 140);
/* oklch */ color: oklch(45.6% 0.194 327.8);
Tailwind
colors: {
  custom: {
    50: '#b165ae',
    500: '#8b168c',
    950: '#000000',
  },
}
SCSS
$custom: #8b168c;
$custom-light: #b165ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8b168c",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 299.492,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45611,
    "c": 0.1944,
    "h": 327.8
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#8B168C
secondary
#3FC03E
accent
#F0383A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B168C

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

Preview Lab → · Contrast checker → · Palette generator →

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