#8B1B97#8B1B97

#8B1B97 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.6% C 0.199 H 323.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8B1B97
RGBrgb(139, 27, 151)
HSLhsl(294, 70%, 35%)
HSVhsv(294, 82%, 59%)
CMYKcmyk(7.9%, 82.1%, 0%, 40.8%)
CIE-LABlab(35.02, 59.71, -42.23)
CIE-LCHlch(35.02, 73.14, 324.73°)
OKLaboklab(46.63% 0.1601 -0.1181)
OKLCHoklch(46.63% 0.199 323.6)
XYZxyz(16.6248, 8.5083, 30.0388)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B97 #27971B
analogous
#4D1B97 #8B1B97 #971B65
triadic
#8B1B97 #978B1B #1B978B
tetradic
#8B1B97 #974D1B #27971B #1B6597
square
#8B1B97 #974D1B #27971B #1B6597
split-complementary
#8B1B97 #65971B #1B974D
monochromatic
#2B082F #5B1263 #8B1B97 #BB24CB #D14DDF

Accessibility & contrast

On white

7.77
#8B1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8B1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B97
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B97#FFFFFF#000000##FFFFFF
##8B1B971.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#345794
Tritanopia (blue-blind)
#8D355A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b1b97;
/* rgb */ color: rgb(139, 27, 151);
/* oklch */ color: oklch(46.6% 0.199 323.6);
Tailwind
colors: {
  custom: {
    50: '#b167b6',
    500: '#8b1b97',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b97;
$custom-light: #b167b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b97",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 294.194,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4663,
    "c": 0.19891,
    "h": 323.6
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#8B1B97
secondary
#58C14C
accent
#EC3B4C
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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