#8B1B7D#8B1B7D

#8B1B7D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.179 H 334.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8B1B7D
RGBrgb(139, 27, 125)
HSLhsl(308, 67%, 33%)
HSVhsv(308, 81%, 55%)
CMYKcmyk(0%, 80.6%, 10.1%, 45.5%)
CIE-LABlab(33.47, 55.42, -28.63)
CIE-LCHlch(33.47, 62.38, 332.68°)
OKLaboklab(45.03% 0.161 -0.0785)
OKLCHoklch(45.03% 0.179 334)
XYZxyz(14.7412, 7.7548, 20.1185)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B7D #1B8B29
analogous
#611B8B #8B1B7D #8B1B45
triadic
#8B1B7D #7D8B1B #1B7D8B
tetradic
#8B1B7D #8B611B #1B8B29 #1B458B
square
#8B1B7D #8B611B #1B8B29 #1B458B
split-complementary
#8B1B7D #458B1B #1B8B61
monochromatic
#250721 #58114F #8B1B7D #BE25AB #DB45C8

Accessibility & contrast

On white

8.23
#8B1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8B1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B7D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B7D#FFFFFF#000000##FFFFFF
##8B1B7D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174480
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#92274B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b1b7d;
/* rgb */ color: rgb(139, 27, 125);
/* oklch */ color: oklch(45.0% 0.179 334.0);
Tailwind
colors: {
  custom: {
    50: '#b166a3',
    500: '#8b1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b7d;
$custom-light: #b166a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b7d",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 307.5,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45027,
    "c": 0.1791,
    "h": 334
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#8B1B7D
secondary
#45BC54
accent
#EA533D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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