#8B1B7B#8B1B7B

#8B1B7B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.178 H 334.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8B1B7B
RGBrgb(139, 27, 123)
HSLhsl(309, 67%, 33%)
HSVhsv(309, 81%, 55%)
CMYKcmyk(0%, 80.6%, 11.5%, 45.5%)
CIE-LABlab(33.36, 55.11, -27.54)
CIE-LCHlch(33.36, 61.61, 333.45°)
OKLaboklab(44.92% 0.1609 -0.0754)
OKLCHoklch(44.92% 0.178 334.9)
XYZxyz(14.6147, 7.7042, 19.4524)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B7B #1B8B2B
analogous
#631B8B #8B1B7B #8B1B43
triadic
#8B1B7B #7B8B1B #1B7B8B
tetradic
#8B1B7B #8B631B #1B8B2B #1B438B
square
#8B1B7B #8B631B #1B8B2B #1B438B
split-complementary
#8B1B7B #438B1B #1B8B63
monochromatic
#250720 #58114E #8B1B7B #BE25A8 #DB45C6

Accessibility & contrast

On white

8.27
#8B1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8B1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B7B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B7B#FFFFFF#000000##FFFFFF
##8B1B7B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#92264A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b1b7b;
/* rgb */ color: rgb(139, 27, 123);
/* oklch */ color: oklch(44.9% 0.178 334.9);
Tailwind
colors: {
  custom: {
    50: '#b166a1',
    500: '#8b1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b7b;
$custom-light: #b166a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b7b",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 308.571,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44915,
    "c": 0.17766,
    "h": 334.9
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#8B1B7B
secondary
#45BC56
accent
#EA563D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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