#8F31B8#8F31B8

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

Color values

HEX#8F31B8
RGBrgb(143, 49, 184)
HSLhsl(282, 58%, 46%)
HSVhsv(282, 73%, 72%)
CMYKcmyk(22.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(40.41, 59.51, -53.30)
CIE-LCHlch(40.41, 79.89, 318.15°)
OKLaboklab(51.27% 0.1418 -0.1505)
OKLCHoklch(51.27% 0.207 313.3)
XYZxyz(21.0762, 11.4976, 46.4471)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31B8 #5AB831
analogous
#4B31B8 #8F31B8 #B8319D
triadic
#8F31B8 #B88F31 #31B88F
tetradic
#8F31B8 #B84B31 #5AB831 #319DB8
square
#8F31B8 #B84B31 #5AB831 #319DB8
split-complementary
#8F31B8 #9DB831 #31B84B
monochromatic
#441757 #692488 #8F31B8 #AC55D2 #C385DE

Accessibility & contrast

On white

6.36
#8F31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8F31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31B8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31B8#FFFFFF#000000##FFFFFF
##8F31B81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#2461B5
Tritanopia (blue-blind)
#8B4F72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f31b8;
/* rgb */ color: rgb(143, 49, 184);
/* oklch */ color: oklch(51.3% 0.207 313.3);
Tailwind
colors: {
  custom: {
    50: '#b472ce',
    500: '#8f31b8',
    950: '#000000',
  },
}
SCSS
$custom: #8f31b8;
$custom-light: #b472ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31b8",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 281.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5127,
    "c": 0.20681,
    "h": 313.3
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#8F31B8
secondary
#94C87D
accent
#E14776
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8F31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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