#8B31BB#8B31BB

#8B31BB is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.208 H 310.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8B31BB
RGBrgb(139, 49, 187)
HSLhsl(279, 58%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(25.7%, 73.8%, 0%, 26.7%)
CIE-LABlab(40.04, 59.35, -55.69)
CIE-LCHlch(40.04, 81.39, 316.82°)
OKLaboklab(50.96% 0.1362 -0.1577)
OKLCHoklch(50.96% 0.208 310.8)
XYZxyz(20.7137, 11.2739, 48.0890)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31BB #61BB31
analogous
#4631BB #8B31BB #BB31A6
triadic
#8B31BB #BB8B31 #31BB8B
tetradic
#8B31BB #BB4631 #61BB31 #31A6BB
square
#8B31BB #BB4631 #61BB31 #31A6BB
split-complementary
#8B31BB #A6BB31 #31BB46
monochromatic
#43185A #67248B #8B31BB #A856D3 #C187E0

Accessibility & contrast

On white

6.45
#8B31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8B31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31BB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31BB#FFFFFF#000000##FFFFFF
##8B31BB1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#1660B8
Tritanopia (blue-blind)
#855174
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b31bb;
/* rgb */ color: rgb(139, 49, 187);
/* oklch */ color: oklch(51.0% 0.208 310.8);
Tailwind
colors: {
  custom: {
    50: '#b172d0',
    500: '#8b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #8b31bb;
$custom-light: #b172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31bb",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 279.13,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50957,
    "c": 0.20835,
    "h": 310.8
  },
  "luminance": 0.11273
}

Semantic roles & 50–950 ramp

primary
#8B31BB
secondary
#99C97F
accent
#E2467C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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