#8B31B3#8B31B3

#8B31B3 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.201 H 313.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8B31B3
RGBrgb(139, 49, 179)
HSLhsl(282, 57%, 45%)
HSVhsv(282, 73%, 70%)
CMYKcmyk(22.3%, 72.6%, 0%, 29.8%)
CIE-LABlab(39.48, 57.66, -51.87)
CIE-LCHlch(39.48, 77.56, 318.03°)
OKLaboklab(50.39% 0.1374 -0.1465)
OKLCHoklch(50.39% 0.201 313.2)
XYZxyz(19.8810, 10.9409, 43.7036)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31B3 #59B331
analogous
#4A31B3 #8B31B3 #B3319A
triadic
#8B31B3 #B38B31 #31B38B
tetradic
#8B31B3 #B34A31 #59B331 #319AB3
square
#8B31B3 #B34A31 #59B331 #319AB3
split-complementary
#8B31B3 #9AB331 #31B34A
monochromatic
#401753 #662483 #8B31B3 #A952D0 #C182DD

Accessibility & contrast

On white

6.59
#8B31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8B31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31B3
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31B3#FFFFFF#000000##FFFFFF
##8B31B31.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#255FB0
Tritanopia (blue-blind)
#874D6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b31b3;
/* rgb */ color: rgb(139, 49, 179);
/* oklch */ color: oklch(50.4% 0.201 313.2);
Tailwind
colors: {
  custom: {
    50: '#b172ca',
    500: '#8b31b3',
    950: '#000000',
  },
}
SCSS
$custom: #8b31b3;
$custom-light: #b172ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31b3",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 281.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50385,
    "c": 0.20079,
    "h": 313.2
  },
  "luminance": 0.1094
}

Semantic roles & 50–950 ramp

primary
#8B31B3
secondary
#91C67A
accent
#E04877
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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