#8B1B8B#8B1B8B

#8B1B8B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.190 H 328.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8B1B8B
RGBrgb(139, 27, 139)
HSLhsl(300, 67%, 33%)
HSVhsv(300, 81%, 55%)
CMYKcmyk(0%, 80.6%, 0%, 45.5%)
CIE-LABlab(34.27, 57.66, -36.07)
CIE-LCHlch(34.27, 68.01, 327.97°)
OKLaboklab(45.86% 0.161 -0.1001)
OKLCHoklch(45.86% 0.19 328.1)
XYZxyz(15.6994, 8.1381, 25.1650)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B8B #1B8B1B
analogous
#531B8B #8B1B8B #8B1B53
triadic
#8B1B8B #8B8B1B #1B8B8B
tetradic
#8B1B8B #8B531B #1B8B1B #1B538B
square
#8B1B8B #8B531B #1B8B1B #1B538B
split-complementary
#8B1B8B #538B1B #1B8B53
monochromatic
#250725 #581158 #8B1B8B #BE25BE #DB45DB

Accessibility & contrast

On white

7.99
#8B1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B8B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B8B#FFFFFF#000000##FFFFFF
##8B1B8B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#902F53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b1b8b;
/* rgb */ color: rgb(139, 27, 139);
/* oklch */ color: oklch(45.9% 0.190 328.1);
Tailwind
colors: {
  custom: {
    50: '#b167ad',
    500: '#8b1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b8b;
$custom-light: #b167ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b8b",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45858,
    "c": 0.18955,
    "h": 328.1
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#8B1B8B
secondary
#45BC45
accent
#EA3D3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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