#8B1F87#8B1F87

#8B1F87 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.183 H 329.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8B1F87
RGBrgb(139, 31, 135)
HSLhsl(302, 64%, 33%)
HSVhsv(302, 78%, 55%)
CMYKcmyk(0%, 77.7%, 2.9%, 45.5%)
CIE-LABlab(34.44, 55.84, -33.33)
CIE-LCHlch(34.44, 65.03, 329.17°)
OKLaboklab(45.9% 0.1578 -0.0921)
OKLCHoklch(45.9% 0.183 329.7)
XYZxyz(15.5105, 8.2194, 23.6866)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F87 #1F8B23
analogous
#591F8B #8B1F87 #8B1F51
triadic
#8B1F87 #878B1F #1F878B
tetradic
#8B1F87 #8B591F #1F8B23 #1F518B
square
#8B1F87 #8B591F #1F8B23 #1F518B
split-complementary
#8B1F87 #518B1F #1F8B59
monochromatic
#270926 #591456 #8B1F87 #BD2AB8 #D74DD2

Accessibility & contrast

On white

7.94
#8B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8B1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F87
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F87#FFFFFF#000000##FFFFFF
##8B1F871.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#902F52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b1f87;
/* rgb */ color: rgb(139, 31, 135);
/* oklch */ color: oklch(45.9% 0.183 329.7);
Tailwind
colors: {
  custom: {
    50: '#b068aa',
    500: '#8b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f87;
$custom-light: #b068aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f87",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 302.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45901,
    "c": 0.18269,
    "h": 329.7
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#8B1F87
secondary
#4CBA50
accent
#E74741
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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