#8B31CA#8B31CA

#8B31CA is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.1% C 0.223 H 306.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8B31CA
RGBrgb(139, 49, 202)
HSLhsl(275, 61%, 49%)
HSVhsv(275, 76%, 79%)
CMYKcmyk(31.2%, 75.7%, 0%, 20.8%)
CIE-LABlab(41.14, 62.58, -62.67)
CIE-LCHlch(41.14, 88.57, 314.96°)
OKLaboklab(52.08% 0.1334 -0.1782)
OKLCHoklch(52.08% 0.223 306.8)
XYZxyz(22.4041, 11.9501, 56.9920)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31CA #70CA31
analogous
#3F31CA #8B31CA #CA31BD
triadic
#8B31CA #CA8B31 #31CA8B
tetradic
#8B31CA #CA3F31 #70CA31 #31BDCA
square
#8B31CA #CA3F31 #70CA31 #31BDCA
split-complementary
#8B31CA #BDCA31 #31CA3F
monochromatic
#471967 #692599 #8B31CA #A760D8 #C291E4

Accessibility & contrast

On white

6.19
#8B31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8B31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31CA
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31CA#FFFFFF#000000##FFFFFF
##8B31CA1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#80577C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8b31ca;
/* rgb */ color: rgb(139, 49, 202);
/* oklch */ color: oklch(52.1% 0.223 306.8);
Tailwind
colors: {
  custom: {
    50: '#b273db',
    500: '#8b31ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b31ca;
$custom-light: #b273db;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31ca",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 275.294,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52077,
    "c": 0.22258,
    "h": 306.8
  },
  "luminance": 0.1195
}

Semantic roles & 50–950 ramp

primary
#8B31CA
secondary
#A5CF88
accent
#E44486
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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