#8F31AC#8F31AC

#8F31AC is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.196 H 317.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8F31AC
RGBrgb(143, 49, 172)
HSLhsl(286, 56%, 43%)
HSVhsv(286, 72%, 67%)
CMYKcmyk(16.9%, 71.5%, 0%, 32.5%)
CIE-LABlab(39.61, 57.07, -47.49)
CIE-LCHlch(39.61, 74.24, 320.24°)
OKLaboklab(50.45% 0.1432 -0.1335)
OKLCHoklch(50.45% 0.196 317)
XYZxyz(19.8713, 11.0156, 40.1012)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31AC #4EAC31
analogous
#5231AC #8F31AC #AC318B
triadic
#8F31AC #AC8F31 #31AC8F
tetradic
#8F31AC #AC5231 #4EAC31 #318BAC
square
#8F31AC #AC5231 #4EAC31 #318BAC
split-complementary
#8F31AC #8BAC31 #31AC52
monochromatic
#40164D #67237C #8F31AC #AF4ECC #C47DDA

Accessibility & contrast

On white

6.56
#8F31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8F31AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31AC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31AC#FFFFFF#000000##FFFFFF
##8F31AC1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#3360A9
Tritanopia (blue-blind)
#8E4A6B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8f31ac;
/* rgb */ color: rgb(143, 49, 172);
/* oklch */ color: oklch(50.4% 0.196 317.0);
Tailwind
colors: {
  custom: {
    50: '#b372c5',
    500: '#8f31ac',
    950: '#000000',
  },
}
SCSS
$custom: #8f31ac;
$custom-light: #b372c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31ac",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 285.854,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50447,
    "c": 0.19574,
    "h": 317
  },
  "luminance": 0.11015
}

Semantic roles & 50–950 ramp

primary
#8F31AC
secondary
#88C376
accent
#DF496C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8F31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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