#8B31C8#8B31C8

#8B31C8 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.9% C 0.221 H 307.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8B31C8
RGBrgb(139, 49, 200)
HSLhsl(276, 61%, 49%)
HSVhsv(276, 76%, 78%)
CMYKcmyk(30.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(40.99, 62.15, -61.75)
CIE-LCHlch(40.99, 87.61, 315.18°)
OKLaboklab(51.92% 0.1338 -0.1755)
OKLCHoklch(51.92% 0.221 307.3)
XYZxyz(22.1689, 11.8560, 55.7530)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31C8 #6EC831
analogous
#4031C8 #8B31C8 #C831BA
triadic
#8B31C8 #C88B31 #31C88B
tetradic
#8B31C8 #C84031 #6EC831 #31BAC8
square
#8B31C8 #C84031 #6EC831 #31BAC8
split-complementary
#8B31C8 #BAC831 #31C840
monochromatic
#471966 #692597 #8B31C8 #A75FD8 #C290E4

Accessibility & contrast

On white

6.23
#8B31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8B31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31C8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31C8#FFFFFF#000000##FFFFFF
##8B31C81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#81567B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8b31c8;
/* rgb */ color: rgb(139, 49, 200);
/* oklch */ color: oklch(51.9% 0.221 307.3);
Tailwind
colors: {
  custom: {
    50: '#b273da',
    500: '#8b31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8b31c8;
$custom-light: #b273da;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31c8",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 275.762,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51924,
    "c": 0.22068,
    "h": 307.3
  },
  "luminance": 0.11856
}

Semantic roles & 50–950 ramp

primary
#8B31C8
secondary
#A4CE86
accent
#E44485
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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