#8B1F97#8B1F97

#8B1F97 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.9% C 0.195 H 323.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8B1F97
RGBrgb(139, 31, 151)
HSLhsl(294, 66%, 36%)
HSVhsv(294, 79%, 59%)
CMYKcmyk(7.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(35.41, 58.59, -41.61)
CIE-LCHlch(35.41, 71.86, 324.62°)
OKLaboklab(46.91% 0.157 -0.1163)
OKLCHoklch(46.91% 0.195 323.5)
XYZxyz(16.7229, 8.7043, 30.0714)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F97 #2B971F
analogous
#4F1F97 #8B1F97 #971F67
triadic
#8B1F97 #978B1F #1F978B
tetradic
#8B1F97 #974F1F #2B971F #1F6797
square
#8B1F97 #974F1F #2B971F #1F6797
split-complementary
#8B1F97 #67971F #1F974F
monochromatic
#2E0A31 #5C1564 #8B1F97 #BA29CA #CE54DC

Accessibility & contrast

On white

7.66
#8B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8B1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F97
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F97#FFFFFF#000000##FFFFFF
##8B1F971.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#355794
Tritanopia (blue-blind)
#8D375B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b1f97;
/* rgb */ color: rgb(139, 31, 151);
/* oklch */ color: oklch(46.9% 0.195 323.5);
Tailwind
colors: {
  custom: {
    50: '#b169b6',
    500: '#8b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f97;
$custom-light: #b169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f97",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 294,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.19537,
    "h": 323.5
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#8B1F97
secondary
#5DBF52
accent
#E93F50
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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