#8F31BD#8F31BD

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

Color values

HEX#8F31BD
RGBrgb(143, 49, 189)
HSLhsl(280, 59%, 47%)
HSVhsv(280, 74%, 74%)
CMYKcmyk(24.3%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.75, 60.54, -55.68)
CIE-LCHlch(40.75, 82.25, 317.40°)
OKLaboklab(51.63% 0.1411 -0.1575)
OKLCHoklch(51.63% 0.211 311.9)
XYZxyz(21.6096, 11.7110, 49.2563)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F31BD #5FBD31
analogous
#4931BD #8F31BD #BD31A5
triadic
#8F31BD #BD8F31 #31BD8F
tetradic
#8F31BD #BD4931 #5FBD31 #31A5BD
square
#8F31BD #BD4931 #5FBD31 #31A5BD
split-complementary
#8F31BD #A5BD31 #31BD49
monochromatic
#45185C #6A248C #8F31BD #AB58D4 #C388E0

Accessibility & contrast

On white

6.28
#8F31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8F31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F31BD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F31BD#FFFFFF#000000##FFFFFF
##8F31BD1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#1C62BA
Tritanopia (blue-blind)
#895175
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f31bd;
/* rgb */ color: rgb(143, 49, 189);
/* oklch */ color: oklch(51.6% 0.211 311.9);
Tailwind
colors: {
  custom: {
    50: '#b472d2',
    500: '#8f31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8f31bd;
$custom-light: #b472d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f31bd",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 280.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51626,
    "c": 0.21147,
    "h": 311.9
  },
  "luminance": 0.1171
}

Semantic roles & 50–950 ramp

primary
#8F31BD
secondary
#98CA80
accent
#E24679
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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