#8B1FA7#8B1FA7

#8B1FA7 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.0% C 0.208 H 318.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8B1FA7
RGBrgb(139, 31, 167)
HSLhsl(288, 69%, 39%)
HSVhsv(288, 81%, 65%)
CMYKcmyk(16.8%, 81.4%, 0%, 34.5%)
CIE-LABlab(36.48, 61.52, -49.57)
CIE-LCHlch(36.48, 79.00, 321.14°)
OKLaboklab(48% 0.1549 -0.1396)
OKLCHoklch(48% 0.209 318)
XYZxyz(18.1115, 9.2598, 37.3850)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1FA7 #3BA71F
analogous
#471FA7 #8B1FA7 #A71F7F
triadic
#8B1FA7 #A78B1F #1FA78B
tetradic
#8B1FA7 #A7471F #3BA71F #1F7FA7
square
#8B1FA7 #A7471F #3BA71F #1F7FA7
split-complementary
#8B1FA7 #7FA71F #1FA747
monochromatic
#350C40 #601573 #8B1FA7 #B42BD8 #C75FE1

Accessibility & contrast

On white

7.36
#8B1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8B1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1FA7
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1FA7#FFFFFF#000000##FFFFFF
##8B1FA71.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#2559A4
Tritanopia (blue-blind)
#8A3F64
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b1fa7;
/* rgb */ color: rgb(139, 31, 167);
/* oklch */ color: oklch(48.0% 0.208 318.0);
Tailwind
colors: {
  custom: {
    50: '#b169c2',
    500: '#8b1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8b1fa7;
$custom-light: #b169c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1fa7",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 287.647,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48001,
    "c": 0.2085,
    "h": 318
  },
  "luminance": 0.09259
}

Semantic roles & 50–950 ramp

primary
#8B1FA7
secondary
#72C65C
accent
#EC3C60
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8B1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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