#8B1F96#8B1F96

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

Color values

HEX#8B1F96
RGBrgb(139, 31, 150)
HSLhsl(294, 66%, 35%)
HSVhsv(294, 79%, 59%)
CMYKcmyk(7.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(35.34, 58.41, -41.10)
CIE-LCHlch(35.34, 71.42, 324.87°)
OKLaboklab(46.84% 0.1571 -0.1148)
OKLCHoklch(46.84% 0.195 323.8)
XYZxyz(16.6420, 8.6720, 29.6456)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F96 #2A961F
analogous
#4F1F96 #8B1F96 #961F65
triadic
#8B1F96 #968B1F #1F968B
tetradic
#8B1F96 #964F1F #2A961F #1F6596
square
#8B1F96 #964F1F #2A961F #1F6596
split-complementary
#8B1F96 #65961F #1F964F
monochromatic
#2D0A31 #5C1563 #8B1F96 #BA29C9 #CF54DC

Accessibility & contrast

On white

7.68
#8B1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8B1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F96
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F96#FFFFFF#000000##FFFFFF
##8B1F961.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#365793
Tritanopia (blue-blind)
#8E365A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b1f96;
/* rgb */ color: rgb(139, 31, 150);
/* oklch */ color: oklch(46.8% 0.195 323.8);
Tailwind
colors: {
  custom: {
    50: '#b169b5',
    500: '#8b1f96',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f96;
$custom-light: #b169b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f96",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 294.454,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46839,
    "c": 0.19456,
    "h": 323.8
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

primary
#8B1F96
secondary
#5CBF52
accent
#E93F4F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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