#8B1B87#8B1B87

#8B1B87 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.186 H 329.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#8B1B87
RGBrgb(139, 27, 135)
HSLhsl(302, 67%, 33%)
HSVhsv(302, 81%, 55%)
CMYKcmyk(0%, 80.6%, 2.9%, 45.5%)
CIE-LABlab(34.03, 57.00, -33.97)
CIE-LCHlch(34.03, 66.36, 329.21°)
OKLaboklab(45.61% 0.1611 -0.094)
OKLCHoklch(45.61% 0.187 329.7)
XYZxyz(15.4125, 8.0233, 23.6539)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B87 #1B8B1F
analogous
#571B8B #8B1B87 #8B1B4F
triadic
#8B1B87 #878B1B #1B878B
tetradic
#8B1B87 #8B571B #1B8B1F #1B4F8B
square
#8B1B87 #8B571B #1B8B1F #1B4F8B
split-complementary
#8B1B87 #4F8B1B #1B8B57
monochromatic
#250723 #581155 #8B1B87 #BE25B9 #DB45D6

Accessibility & contrast

On white

8.06
#8B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8B1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B87
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B87#FFFFFF#000000##FFFFFF
##8B1B871.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04478A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#902D51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1b87;
/* rgb */ color: rgb(139, 27, 135);
/* oklch */ color: oklch(45.6% 0.186 329.7);
Tailwind
colors: {
  custom: {
    50: '#b166aa',
    500: '#8b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b87;
$custom-light: #b166aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b87",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 302.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.1865,
    "h": 329.7
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#8B1B87
secondary
#45BC4A
accent
#EA443D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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