#8B1F8A#8B1F8A

#8B1F8A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.185 H 328.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8B1F8A
RGBrgb(139, 31, 138)
HSLhsl(301, 64%, 33%)
HSVhsv(301, 78%, 55%)
CMYKcmyk(0%, 77.7%, 0.7%, 45.5%)
CIE-LABlab(34.61, 56.34, -34.91)
CIE-LCHlch(34.61, 66.27, 328.22°)
OKLaboklab(46.08% 0.1577 -0.0967)
OKLCHoklch(46.08% 0.185 328.5)
XYZxyz(15.7247, 8.3051, 24.8147)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F8A #1F8B20
analogous
#561F8B #8B1F8A #8B1F54
triadic
#8B1F8A #8A8B1F #1F8A8B
tetradic
#8B1F8A #8B561F #1F8B20 #1F548B
square
#8B1F8A #8B561F #1F8B20 #1F548B
split-complementary
#8B1F8A #548B1F #1F8B56
monochromatic
#270927 #591458 #8B1F8A #BD2ABC #D74DD6

Accessibility & contrast

On white

7.89
#8B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8B1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F8A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F8A#FFFFFF#000000##FFFFFF
##8B1F8A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#903054
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b1f8a;
/* rgb */ color: rgb(139, 31, 138);
/* oklch */ color: oklch(46.1% 0.185 328.5);
Tailwind
colors: {
  custom: {
    50: '#b068ac',
    500: '#8b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f8a;
$custom-light: #b068ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f8a",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 300.556,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.46082,
    "c": 0.18502,
    "h": 328.5
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#8B1F8A
secondary
#4CBA4D
accent
#E74341
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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