#8F31B9#8F31B9

#8F31B9 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.3% C 0.208 H 313.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8F31B9
RGBrgb(143, 49, 185)
HSLhsl(281, 58%, 46%)
HSVhsv(281, 74%, 73%)
CMYKcmyk(22.7%, 73.5%, 0%, 27.5%)
CIE-LABlab(40.48, 59.71, -53.78)
CIE-LCHlch(40.48, 80.36, 317.99°)
OKLaboklab(51.34% 0.1417 -0.1519)
OKLCHoklch(51.34% 0.208 313)
XYZxyz(21.1814, 11.5397, 47.0011)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B9 #5BB931
analogous
#4B31B9 #8F31B9 #B9319F
triadic
#8F31B9 #B98F31 #31B98F
tetradic
#8F31B9 #B94B31 #5BB931 #319FB9
square
#8F31B9 #B94B31 #5BB931 #319FB9
split-complementary
#8F31B9 #9FB931 #31B94B
monochromatic
#441758 #6A2489 #8F31B9 #AB55D2 #C386DF

Accessibility & contrast

On white

6.35
#8F31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8F31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B9
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B9#FFFFFF#000000##FFFFFF
##8F31B91.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#2361B6
Tritanopia (blue-blind)
#8A4F73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f31b9;
/* rgb */ color: rgb(143, 49, 185);
/* oklch */ color: oklch(51.3% 0.208 313.0);
Tailwind
colors: {
  custom: {
    50: '#b472cf',
    500: '#8f31b9',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b9;
$custom-light: #b472cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b9",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 281.471,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51341,
    "c": 0.20775,
    "h": 313
  },
  "luminance": 0.11539
}

Semantic roles & 50–950 ramp

primary
#8F31B9
secondary
#95C87D
accent
#E14676
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #8F31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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