#8B31C5#8B31C5

#8B31C5 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.7% C 0.218 H 308.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8B31C5
RGBrgb(139, 49, 197)
HSLhsl(276, 60%, 48%)
HSVhsv(276, 75%, 77%)
CMYKcmyk(29.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(40.76, 61.49, -60.37)
CIE-LCHlch(40.76, 86.17, 315.53°)
OKLaboklab(51.7% 0.1344 -0.1714)
OKLCHoklch(51.7% 0.218 308.1)
XYZxyz(21.8217, 11.7172, 53.9246)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31C5 #6BC531
analogous
#4131C5 #8B31C5 #C531B5
triadic
#8B31C5 #C58B31 #31C58B
tetradic
#8B31C5 #C54131 #6BC531 #31B5C5
square
#8B31C5 #C54131 #6BC531 #31B5C5
split-complementary
#8B31C5 #B5C531 #31C541
monochromatic
#461963 #682594 #8B31C5 #A75DD7 #C18EE3

Accessibility & contrast

On white

6.28
#8B31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8B31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31C5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31C5#FFFFFF#000000##FFFFFF
##8B31C51.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#825579
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8b31c5;
/* rgb */ color: rgb(139, 49, 197);
/* oklch */ color: oklch(51.7% 0.218 308.1);
Tailwind
colors: {
  custom: {
    50: '#b272d7',
    500: '#8b31c5',
    950: '#000000',
  },
}
SCSS
$custom: #8b31c5;
$custom-light: #b272d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31c5",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 276.486,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51697,
    "c": 0.21783,
    "h": 308.1
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#8B31C5
secondary
#A1CD85
accent
#E34483
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8B31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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