#8B31B2#8B31B2

#8B31B2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.200 H 313.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8B31B2
RGBrgb(139, 49, 178)
HSLhsl(282, 57%, 45%)
HSVhsv(282, 72%, 70%)
CMYKcmyk(21.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(39.41, 57.45, -51.39)
CIE-LCHlch(39.41, 77.09, 318.19°)
OKLaboklab(50.32% 0.1375 -0.1451)
OKLCHoklch(50.32% 0.2 313.5)
XYZxyz(19.7803, 10.9006, 43.1729)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31B2 #58B231
analogous
#4A31B2 #8B31B2 #B23199
triadic
#8B31B2 #B28B31 #31B28B
tetradic
#8B31B2 #B24A31 #58B231 #3199B2
square
#8B31B2 #B24A31 #58B231 #3199B2
split-complementary
#8B31B2 #99B231 #31B24A
monochromatic
#401752 #662482 #8B31B2 #A951CF #C181DC

Accessibility & contrast

On white

6.60
#8B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8B31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31B2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31B2#FFFFFF#000000##FFFFFF
##8B31B21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#265FAF
Tritanopia (blue-blind)
#874D6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b31b2;
/* rgb */ color: rgb(139, 49, 178);
/* oklch */ color: oklch(50.3% 0.200 313.5);
Tailwind
colors: {
  custom: {
    50: '#b172ca',
    500: '#8b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b31b2;
$custom-light: #b172ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31b2",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 281.86,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50315,
    "c": 0.19985,
    "h": 313.5
  },
  "luminance": 0.109
}

Semantic roles & 50–950 ramp

primary
#8B31B2
secondary
#90C579
accent
#E04876
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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