#8B31B8#8B31B8

#8B31B8 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.7% C 0.206 H 311.7°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8B31B8
RGBrgb(139, 49, 184)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 73%, 72%)
CMYKcmyk(24.5%, 73.4%, 0%, 27.8%)
CIE-LABlab(39.83, 58.71, -54.27)
CIE-LCHlch(39.83, 79.95, 317.25°)
OKLaboklab(50.74% 0.1367 -0.1535)
OKLCHoklch(50.74% 0.206 311.7)
XYZxyz(20.3959, 11.1468, 46.4152)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31B8 #5EB831
analogous
#4731B8 #8B31B8 #B831A1
triadic
#8B31B8 #B88B31 #31B88B
tetradic
#8B31B8 #B84731 #5EB831 #31A1B8
square
#8B31B8 #B84731 #5EB831 #31A1B8
split-complementary
#8B31B8 #A1B831 #31B847
monochromatic
#421757 #662488 #8B31B8 #A855D2 #C185DE

Accessibility & contrast

On white

6.50
#8B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8B31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31B8
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31B8#FFFFFF#000000##FFFFFF
##8B31B81.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#1D5FB5
Tritanopia (blue-blind)
#854F72
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b31b8;
/* rgb */ color: rgb(139, 49, 184);
/* oklch */ color: oklch(50.7% 0.206 311.7);
Tailwind
colors: {
  custom: {
    50: '#b172ce',
    500: '#8b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #8b31b8;
$custom-light: #b172ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31b8",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 280,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5074,
    "c": 0.20551,
    "h": 311.7
  },
  "luminance": 0.11146
}

Semantic roles & 50–950 ramp

primary
#8B31B8
secondary
#96C87D
accent
#E1477A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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