#8F31AF#8F31AF

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

Color values

HEX#8F31AF
RGBrgb(143, 49, 175)
HSLhsl(285, 56%, 44%)
HSVhsv(285, 72%, 69%)
CMYKcmyk(18.3%, 72%, 0%, 31.4%)
CIE-LABlab(39.80, 57.67, -48.96)
CIE-LCHlch(39.80, 75.65, 319.67°)
OKLaboklab(50.65% 0.1429 -0.1378)
OKLCHoklch(50.65% 0.199 316)
XYZxyz(20.1627, 11.1322, 41.6358)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31AF #51AF31
analogous
#5031AF #8F31AF #AF3190
triadic
#8F31AF #AF8F31 #31AF8F
tetradic
#8F31AF #AF5031 #51AF31 #3190AF
square
#8F31AF #AF5031 #51AF31 #3190AF
split-complementary
#8F31AF #90AF31 #31AF50
monochromatic
#41164F #68247F #8F31AF #AE4FCE #C47FDB

Accessibility & contrast

On white

6.51
#8F31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8F31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31AF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31AF#FFFFFF#000000##FFFFFF
##8F31AF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#3060AC
Tritanopia (blue-blind)
#8D4B6D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f31af;
/* rgb */ color: rgb(143, 49, 175);
/* oklch */ color: oklch(50.6% 0.199 316.0);
Tailwind
colors: {
  custom: {
    50: '#b472c7',
    500: '#8f31af',
    950: '#000000',
  },
}
SCSS
$custom: #8f31af;
$custom-light: #b472c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31af",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 284.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50649,
    "c": 0.1985,
    "h": 316
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#8F31AF
secondary
#8BC478
accent
#E0486F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8F31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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