#8B31BA#8B31BA

#8B31BA is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.207 H 311.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8B31BA
RGBrgb(139, 49, 186)
HSLhsl(279, 58%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(25.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(39.97, 59.14, -55.22)
CIE-LCHlch(39.97, 80.91, 316.96°)
OKLaboklab(50.88% 0.1363 -0.1563)
OKLCHoklch(50.88% 0.207 311.1)
XYZxyz(20.6070, 11.2313, 47.5272)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31BA #60BA31
analogous
#4631BA #8B31BA #BA31A4
triadic
#8B31BA #BA8B31 #31BA8B
tetradic
#8B31BA #BA4631 #60BA31 #31A4BA
square
#8B31BA #BA4631 #60BA31 #31A4BA
split-complementary
#8B31BA #A4BA31 #31BA46
monochromatic
#431759 #67248A #8B31BA #A856D2 #C186DF

Accessibility & contrast

On white

6.47
#8B31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B31BA
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31BA#FFFFFF#000000##FFFFFF
##8B31BA1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#1860B7
Tritanopia (blue-blind)
#855073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b31ba;
/* rgb */ color: rgb(139, 49, 186);
/* oklch */ color: oklch(50.9% 0.207 311.1);
Tailwind
colors: {
  custom: {
    50: '#b172d0',
    500: '#8b31ba',
    950: '#000000',
  },
}
SCSS
$custom: #8b31ba;
$custom-light: #b172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31ba",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 279.416,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50884,
    "c": 0.2074,
    "h": 311.1
  },
  "luminance": 0.11231
}

Semantic roles & 50–950 ramp

primary
#8B31BA
secondary
#98C97E
accent
#E2467C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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