#8B31C1#8B31C1

#8B31C1 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.214 H 309.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8B31C1
RGBrgb(139, 49, 193)
HSLhsl(278, 60%, 47%)
HSVhsv(278, 75%, 76%)
CMYKcmyk(28%, 74.6%, 0%, 24.3%)
CIE-LABlab(40.47, 60.63, -58.51)
CIE-LCHlch(40.47, 84.26, 316.02°)
OKLaboklab(51.4% 0.1352 -0.166)
OKLCHoklch(51.4% 0.214 309.2)
XYZxyz(21.3695, 11.5363, 51.5427)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31C1 #67C131
analogous
#4331C1 #8B31C1 #C131AF
triadic
#8B31C1 #C18B31 #31C18B
tetradic
#8B31C1 #C14331 #67C131 #31AFC1
square
#8B31C1 #C14331 #67C131 #31AFC1
split-complementary
#8B31C1 #AFC131 #31C143
monochromatic
#45185F #682590 #8B31C1 #A75AD5 #C18BE2

Accessibility & contrast

On white

6.35
#8B31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8B31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31C1
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31C1#FFFFFF#000000##FFFFFF
##8B31C11.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#0061BE
Tritanopia (blue-blind)
#835377
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b31c1;
/* rgb */ color: rgb(139, 49, 193);
/* oklch */ color: oklch(51.4% 0.214 309.2);
Tailwind
colors: {
  custom: {
    50: '#b272d5',
    500: '#8b31c1',
    950: '#000000',
  },
}
SCSS
$custom: #8b31c1;
$custom-light: #b272d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31c1",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 277.5,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51397,
    "c": 0.21404,
    "h": 309.2
  },
  "luminance": 0.11536
}

Semantic roles & 50–950 ramp

primary
#8B31C1
secondary
#9ECC82
accent
#E34580
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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