#8B1A97#8B1A97

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

Color values

HEX#8B1A97
RGBrgb(139, 26, 151)
HSLhsl(294, 71%, 35%)
HSVhsv(294, 83%, 59%)
CMYKcmyk(7.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(34.93, 59.98, -42.38)
CIE-LCHlch(34.93, 73.44, 324.76°)
OKLaboklab(46.57% 0.1608 -0.1185)
OKLCHoklch(46.57% 0.2 323.6)
XYZxyz(16.6023, 8.4632, 30.0312)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1A97 #26971A
analogous
#4D1A97 #8B1A97 #971A65
triadic
#8B1A97 #978B1A #1A978B
tetradic
#8B1A97 #974D1A #26971A #1A6597
square
#8B1A97 #974D1A #26971A #1A6597
split-complementary
#8B1A97 #65971A #1A974D
monochromatic
#2B082F #5B1163 #8B1A97 #BB23CB #D24BE0

Accessibility & contrast

On white

7.80
#8B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8B1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1A97
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1A97#FFFFFF#000000##FFFFFF
##8B1A971.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b1a97;
/* rgb */ color: rgb(139, 26, 151);
/* oklch */ color: oklch(46.6% 0.200 323.6);
Tailwind
colors: {
  custom: {
    50: '#b167b6',
    500: '#8b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #8b1a97;
$custom-light: #b167b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1a97",
  "rgb": {
    "r": 139,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 294.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46566,
    "c": 0.19974,
    "h": 323.6
  },
  "luminance": 0.08462
}

Semantic roles & 50–950 ramp

primary
#8B1A97
secondary
#56C24B
accent
#ED3A4C
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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