#8B1FA8#8B1FA8

#8B1FA8 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.1% C 0.209 H 317.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8B1FA8
RGBrgb(139, 31, 168)
HSLhsl(287, 69%, 39%)
HSVhsv(287, 82%, 66%)
CMYKcmyk(17.3%, 81.5%, 0%, 34.1%)
CIE-LABlab(36.55, 61.71, -50.05)
CIE-LCHlch(36.55, 79.45, 320.95°)
OKLaboklab(48.07% 0.1547 -0.141)
OKLCHoklch(48.07% 0.209 317.7)
XYZxyz(18.2043, 9.2969, 37.8738)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1FA8 #3CA81F
analogous
#471FA8 #8B1FA8 #A81F81
triadic
#8B1FA8 #A88B1F #1FA88B
tetradic
#8B1FA8 #A8471F #3CA81F #1F81A8
square
#8B1FA8 #A8471F #3CA81F #1F81A8
split-complementary
#8B1FA8 #81A81F #1FA847
monochromatic
#360C41 #601574 #8B1FA8 #B42CD8 #C660E2

Accessibility & contrast

On white

7.34
#8B1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8B1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1FA8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1FA8#FFFFFF#000000##FFFFFF
##8B1FA81.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#2459A5
Tritanopia (blue-blind)
#8A3F65
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b1fa8;
/* rgb */ color: rgb(139, 31, 168);
/* oklch */ color: oklch(48.1% 0.209 317.7);
Tailwind
colors: {
  custom: {
    50: '#b169c3',
    500: '#8b1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8b1fa8;
$custom-light: #b169c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1fa8",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 287.299,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48073,
    "c": 0.20934,
    "h": 317.7
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#8B1FA8
secondary
#73C65D
accent
#EC3C61
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8B1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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