#8F31B3#8F31B3

#8F31B3 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 50.9% C 0.202 H 314.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8F31B3
RGBrgb(143, 49, 179)
HSLhsl(283, 57%, 45%)
HSVhsv(283, 73%, 70%)
CMYKcmyk(20.1%, 72.6%, 0%, 29.8%)
CIE-LABlab(40.07, 58.48, -50.90)
CIE-LCHlch(40.07, 77.53, 318.97°)
OKLaboklab(50.92% 0.1425 -0.1435)
OKLCHoklch(50.92% 0.202 314.8)
XYZxyz(20.5613, 11.2917, 43.7355)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B3 #55B331
analogous
#4E31B3 #8F31B3 #B33196
triadic
#8F31B3 #B38F31 #31B38F
tetradic
#8F31B3 #B34E31 #55B331 #3196B3
square
#8F31B3 #B34E31 #55B331 #3196B3
split-complementary
#8F31B3 #96B331 #31B34E
monochromatic
#421753 #692483 #8F31B3 #AD52D0 #C482DD

Accessibility & contrast

On white

6.45
#8F31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8F31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B3
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B3#FFFFFF#000000##FFFFFF
##8F31B31.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#2B61B0
Tritanopia (blue-blind)
#8C4D6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8f31b3;
/* rgb */ color: rgb(143, 49, 179);
/* oklch */ color: oklch(50.9% 0.202 314.8);
Tailwind
colors: {
  custom: {
    50: '#b472ca',
    500: '#8f31b3',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b3;
$custom-light: #b472ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b3",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 283.385,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50922,
    "c": 0.20219,
    "h": 314.8
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

primary
#8F31B3
secondary
#8FC67A
accent
#E04872
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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