#8B1B8A#8B1B8A

#8B1B8A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.189 H 328.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8B1B8A
RGBrgb(139, 27, 138)
HSLhsl(301, 67%, 33%)
HSVhsv(301, 81%, 55%)
CMYKcmyk(0%, 80.6%, 0.7%, 45.5%)
CIE-LABlab(34.21, 57.50, -35.54)
CIE-LCHlch(34.21, 67.60, 328.28°)
OKLaboklab(45.8% 0.161 -0.0985)
OKLCHoklch(45.8% 0.189 328.5)
XYZxyz(15.6267, 8.1090, 24.7820)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B8A #1B8B1C
analogous
#541B8B #8B1B8A #8B1B52
triadic
#8B1B8A #8A8B1B #1B8A8B
tetradic
#8B1B8A #8B541B #1B8B1C #1B528B
square
#8B1B8A #8B541B #1B8B1C #1B528B
split-complementary
#8B1B8A #528B1B #1B8B54
monochromatic
#250724 #581157 #8B1B8A #BE25BD #DB45DA

Accessibility & contrast

On white

8.01
#8B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B8A
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B8A#FFFFFF#000000##FFFFFF
##8B1B8A1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3D5587
Tritanopia (blue-blind)
#902E53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1b8a;
/* rgb */ color: rgb(139, 27, 138);
/* oklch */ color: oklch(45.8% 0.189 328.5);
Tailwind
colors: {
  custom: {
    50: '#b167ac',
    500: '#8b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b8a;
$custom-light: #b167ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b8a",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 300.536,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45796,
    "c": 0.18878,
    "h": 328.5
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#8B1B8A
secondary
#45BC46
accent
#EA3F3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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