#8F31BB#8F31BB

#8F31BB is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.210 H 312.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8F31BB
RGBrgb(143, 49, 187)
HSLhsl(281, 58%, 46%)
HSVhsv(281, 74%, 73%)
CMYKcmyk(23.5%, 73.8%, 0%, 26.7%)
CIE-LABlab(40.61, 60.13, -54.73)
CIE-LCHlch(40.61, 81.31, 317.69°)
OKLaboklab(51.48% 0.1414 -0.1547)
OKLCHoklch(51.48% 0.21 312.4)
XYZxyz(21.3940, 11.6247, 48.1209)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31BB #5DBB31
analogous
#4A31BB #8F31BB #BB31A2
triadic
#8F31BB #BB8F31 #31BB8F
tetradic
#8F31BB #BB4A31 #5DBB31 #31A2BB
square
#8F31BB #BB4A31 #5DBB31 #31A2BB
split-complementary
#8F31BB #A2BB31 #31BB4A
monochromatic
#45185A #6A248B #8F31BB #AB56D3 #C387E0

Accessibility & contrast

On white

6.32
#8F31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8F31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31BB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31BB#FFFFFF#000000##FFFFFF
##8F31BB1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#1F62B8
Tritanopia (blue-blind)
#8A5074
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f31bb;
/* rgb */ color: rgb(143, 49, 187);
/* oklch */ color: oklch(51.5% 0.210 312.4);
Tailwind
colors: {
  custom: {
    50: '#b472d0',
    500: '#8f31bb',
    950: '#000000',
  },
}
SCSS
$custom: #8f31bb;
$custom-light: #b472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31bb",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 280.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51483,
    "c": 0.2096,
    "h": 312.4
  },
  "luminance": 0.11624
}

Semantic roles & 50–950 ramp

primary
#8F31BB
secondary
#96C97F
accent
#E24678
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #8F31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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