#8B31AA#8B31AA

#8B31AA is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.192 H 316.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8B31AA
RGBrgb(139, 49, 170)
HSLhsl(285, 55%, 43%)
HSVhsv(285, 71%, 67%)
CMYKcmyk(18.2%, 71.2%, 0%, 33.3%)
CIE-LABlab(38.88, 55.81, -47.50)
CIE-LCHlch(38.88, 73.28, 319.60°)
OKLaboklab(49.77% 0.1383 -0.1336)
OKLCHoklch(49.77% 0.192 316)
XYZxyz(19.0003, 10.5886, 39.0654)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31AA #50AA31
analogous
#4E31AA #8B31AA #AA318C
triadic
#8B31AA #AA8B31 #31AA8B
tetradic
#8B31AA #AA4E31 #50AA31 #318CAA
square
#8B31AA #AA4E31 #50AA31 #318CAA
split-complementary
#8B31AA #8CAA31 #31AA4E
monochromatic
#3D164B #64237A #8B31AA #AB4DCC #C17CD9

Accessibility & contrast

On white

6.74
#8B31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8B31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31AA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31AA#FFFFFF#000000##FFFFFF
##8B31AA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#305EA7
Tritanopia (blue-blind)
#894A6A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b31aa;
/* rgb */ color: rgb(139, 49, 170);
/* oklch */ color: oklch(49.8% 0.192 316.0);
Tailwind
colors: {
  custom: {
    50: '#b171c4',
    500: '#8b31aa',
    950: '#000000',
  },
}
SCSS
$custom: #8b31aa;
$custom-light: #b171c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31aa",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 284.628,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.19234,
    "h": 316
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#8B31AA
secondary
#89C275
accent
#DF496F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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