#8F31AE#8F31AE

#8F31AE is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.198 H 316.4°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8F31AE
RGBrgb(143, 49, 174)
HSLhsl(285, 56%, 44%)
HSVhsv(285, 72%, 68%)
CMYKcmyk(17.8%, 71.8%, 0%, 31.8%)
CIE-LABlab(39.74, 57.47, -48.47)
CIE-LCHlch(39.74, 75.18, 319.86°)
OKLaboklab(50.58% 0.143 -0.1363)
OKLCHoklch(50.58% 0.198 316.4)
XYZxyz(20.0648, 11.0931, 41.1204)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31AE #50AE31
analogous
#5031AE #8F31AE #AE318E
triadic
#8F31AE #AE8F31 #31AE8F
tetradic
#8F31AE #AE5031 #50AE31 #318EAE
square
#8F31AE #AE5031 #50AE31 #318EAE
split-complementary
#8F31AE #8EAE31 #31AE50
monochromatic
#41164E #68247E #8F31AE #AE4FCD #C47FDB

Accessibility & contrast

On white

6.52
#8F31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8F31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31AE
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31AE#FFFFFF#000000##FFFFFF
##8F31AE1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#3160AB
Tritanopia (blue-blind)
#8D4B6C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f31ae;
/* rgb */ color: rgb(143, 49, 174);
/* oklch */ color: oklch(50.6% 0.198 316.4);
Tailwind
colors: {
  custom: {
    50: '#b472c7',
    500: '#8f31ae',
    950: '#000000',
  },
}
SCSS
$custom: #8f31ae;
$custom-light: #b472c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31ae",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 285.12,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50581,
    "c": 0.19758,
    "h": 316.4
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#8F31AE
secondary
#8AC477
accent
#DF486E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8F31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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