#8B1F8E#8B1F8E

#8B1F8E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.188 H 326.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8B1F8E
RGBrgb(139, 31, 142)
HSLhsl(298, 64%, 34%)
HSVhsv(298, 78%, 56%)
CMYKcmyk(2.1%, 78.2%, 0%, 44.3%)
CIE-LABlab(34.85, 57.01, -36.99)
CIE-LCHlch(34.85, 67.96, 327.02°)
OKLaboklab(46.33% 0.1576 -0.1028)
OKLCHoklch(46.33% 0.188 326.9)
XYZxyz(16.0197, 8.4231, 26.3680)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F8E #228E1F
analogous
#541F8E #8B1F8E #8E1F5A
triadic
#8B1F8E #8E8B1F #1F8E8B
tetradic
#8B1F8E #8E541F #228E1F #1F5A8E
square
#8B1F8E #8E541F #228E1F #1F5A8E
split-complementary
#8B1F8E #5A8E1F #1F8E54
monochromatic
#29092A #5A145C #8B1F8E #BC2AC0 #D54FD9

Accessibility & contrast

On white

7.82
#8B1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8B1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F8E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F8E#FFFFFF#000000##FFFFFF
##8B1F8E1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#3C578B
Tritanopia (blue-blind)
#8F3256
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b1f8e;
/* rgb */ color: rgb(139, 31, 142);
/* oklch */ color: oklch(46.3% 0.188 326.9);
Tailwind
colors: {
  custom: {
    50: '#b168af',
    500: '#8b1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f8e;
$custom-light: #b168af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f8e",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 298.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46328,
    "c": 0.18817,
    "h": 326.9
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

primary
#8B1F8E
secondary
#50BB4D
accent
#E74145
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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