#8F31BC#8F31BC

#8F31BC is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.211 H 312.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8F31BC
RGBrgb(143, 49, 188)
HSLhsl(281, 59%, 46%)
HSVhsv(281, 74%, 74%)
CMYKcmyk(23.9%, 73.9%, 0%, 26.3%)
CIE-LABlab(40.68, 60.33, -55.21)
CIE-LCHlch(40.68, 81.78, 317.54°)
OKLaboklab(51.55% 0.1412 -0.1561)
OKLCHoklch(51.55% 0.211 312.1)
XYZxyz(21.5014, 11.6677, 48.6866)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31BC #5EBC31
analogous
#4A31BC #8F31BC #BC31A4
triadic
#8F31BC #BC8F31 #31BC8F
tetradic
#8F31BC #BC4A31 #5EBC31 #31A4BC
square
#8F31BC #BC4A31 #5EBC31 #31A4BC
split-complementary
#8F31BC #A4BC31 #31BC4A
monochromatic
#45185B #6A248B #8F31BC #AB57D3 #C388E0

Accessibility & contrast

On white

6.30
#8F31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8F31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31BC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31BC#FFFFFF#000000##FFFFFF
##8F31BC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#1E62B9
Tritanopia (blue-blind)
#8A5174
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f31bc;
/* rgb */ color: rgb(143, 49, 188);
/* oklch */ color: oklch(51.6% 0.211 312.1);
Tailwind
colors: {
  custom: {
    50: '#b472d1',
    500: '#8f31bc',
    950: '#000000',
  },
}
SCSS
$custom: #8f31bc;
$custom-light: #b472d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31bc",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 280.576,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51554,
    "c": 0.21054,
    "h": 312.1
  },
  "luminance": 0.11667
}

Semantic roles & 50–950 ramp

primary
#8F31BC
secondary
#97CA7F
accent
#E24678
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #8F31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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