#8B1FA6#8B1FA6

#8B1FA6 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.208 H 318.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8B1FA6
RGBrgb(139, 31, 166)
HSLhsl(288, 69%, 39%)
HSVhsv(288, 81%, 65%)
CMYKcmyk(16.3%, 81.3%, 0%, 34.9%)
CIE-LABlab(36.41, 61.33, -49.08)
CIE-LCHlch(36.41, 78.55, 321.33°)
OKLaboklab(47.93% 0.1551 -0.1381)
OKLCHoklch(47.93% 0.208 318.3)
XYZxyz(18.0194, 9.2230, 36.9001)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1FA6 #3AA61F
analogous
#471FA6 #8B1FA6 #A61F7D
triadic
#8B1FA6 #A68B1F #1FA68B
tetradic
#8B1FA6 #A6471F #3AA61F #1F7DA6
square
#8B1FA6 #A6471F #3AA61F #1F7DA6
split-complementary
#8B1FA6 #7DA61F #1FA647
monochromatic
#350C3F #601572 #8B1FA6 #B52BD7 #C75EE1

Accessibility & contrast

On white

7.38
#8B1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8B1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1FA6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1FA6#FFFFFF#000000##FFFFFF
##8B1FA61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#2659A3
Tritanopia (blue-blind)
#8A3E64
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b1fa6;
/* rgb */ color: rgb(139, 31, 166);
/* oklch */ color: oklch(47.9% 0.208 318.3);
Tailwind
colors: {
  custom: {
    50: '#b169c1',
    500: '#8b1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8b1fa6;
$custom-light: #b169c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1fa6",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 288,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4793,
    "c": 0.20768,
    "h": 318.3
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#8B1FA6
secondary
#71C55B
accent
#EB3C5F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8B1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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