#8F31B0#8F31B0

#8F31B0 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.199 H 315.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8F31B0
RGBrgb(143, 49, 176)
HSLhsl(284, 56%, 44%)
HSVhsv(284, 72%, 69%)
CMYKcmyk(18.7%, 72.2%, 0%, 31%)
CIE-LABlab(39.87, 57.87, -49.44)
CIE-LCHlch(39.87, 76.12, 319.49°)
OKLaboklab(50.72% 0.1428 -0.1392)
OKLCHoklch(50.72% 0.199 315.7)
XYZxyz(20.2612, 11.1716, 42.1549)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B0 #52B031
analogous
#4F31B0 #8F31B0 #B03192
triadic
#8F31B0 #B08F31 #31B08F
tetradic
#8F31B0 #B04F31 #52B031 #3192B0
square
#8F31B0 #B04F31 #52B031 #3192B0
split-complementary
#8F31B0 #92B031 #31B04F
monochromatic
#411650 #682480 #8F31B0 #AD50CE #C480DC

Accessibility & contrast

On white

6.49
#8F31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8F31B0
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B0#FFFFFF#000000##FFFFFF
##8F31B01.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B4
Deuteranopia (green-blind)
#2F60AD
Tritanopia (blue-blind)
#8D4B6E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f31b0;
/* rgb */ color: rgb(143, 49, 176);
/* oklch */ color: oklch(50.7% 0.199 315.7);
Tailwind
colors: {
  custom: {
    50: '#b472c8',
    500: '#8f31b0',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b0;
$custom-light: #b472c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b0",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 284.409,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50717,
    "c": 0.19942,
    "h": 315.7
  },
  "luminance": 0.11171
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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