#8B1987#8B1987

#8B1987 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.188 H 329.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8B1987
RGBrgb(139, 25, 135)
HSLhsl(302, 70%, 32%)
HSVhsv(302, 82%, 55%)
CMYKcmyk(0%, 82%, 2.9%, 45.5%)
CIE-LABlab(33.85, 57.54, -34.26)
CIE-LCHlch(33.85, 66.97, 329.23°)
OKLaboklab(45.48% 0.1626 -0.0948)
OKLCHoklch(45.48% 0.188 329.8)
XYZxyz(15.3682, 7.9347, 23.6391)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1987 #198B1D
analogous
#56198B #8B1987 #8B194E
triadic
#8B1987 #878B19 #19878B
tetradic
#8B1987 #8B5619 #198B1D #194E8B
square
#8B1987 #8B5619 #198B1D #194E8B
split-complementary
#8B1987 #4E8B19 #198B56
monochromatic
#230622 #571055 #8B1987 #BF22B9 #DD41D7

Accessibility & contrast

On white

8.12
#8B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8B1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1987
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1987#FFFFFF#000000##FFFFFF
##8B19871.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#3E5584
Tritanopia (blue-blind)
#902B51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1987;
/* rgb */ color: rgb(139, 25, 135);
/* oklch */ color: oklch(45.5% 0.188 329.8);
Tailwind
colors: {
  custom: {
    50: '#b166aa',
    500: '#8b1987',
    950: '#000000',
  },
}
SCSS
$custom: #8b1987;
$custom-light: #b166aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1987",
  "rgb": {
    "r": 139,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 302.105,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45481,
    "c": 0.18826,
    "h": 329.8
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#8B1987
secondary
#42BE46
accent
#EC423B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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