#8B31BF#8B31BF

#8B31BF is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.212 H 309.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8B31BF
RGBrgb(139, 49, 191)
HSLhsl(278, 59%, 47%)
HSVhsv(278, 74%, 75%)
CMYKcmyk(27.2%, 74.3%, 0%, 25.1%)
CIE-LABlab(40.32, 60.20, -57.57)
CIE-LCHlch(40.32, 83.30, 316.28°)
OKLaboklab(51.25% 0.1355 -0.1632)
OKLCHoklch(51.25% 0.212 309.7)
XYZxyz(21.1479, 11.4476, 50.3757)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31BF #65BF31
analogous
#4431BF #8B31BF #BF31AC
triadic
#8B31BF #BF8B31 #31BF8B
tetradic
#8B31BF #BF4431 #65BF31 #31ACBF
square
#8B31BF #BF4431 #65BF31 #31ACBF
split-complementary
#8B31BF #ACBF31 #31BF44
monochromatic
#44185E #68258E #8B31BF #A759D4 #C18AE1

Accessibility & contrast

On white

6.38
#8B31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8B31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31BF
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31BF#FFFFFF#000000##FFFFFF
##8B31BF1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0860BC
Tritanopia (blue-blind)
#835276
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b31bf;
/* rgb */ color: rgb(139, 49, 191);
/* oklch */ color: oklch(51.2% 0.212 309.7);
Tailwind
colors: {
  custom: {
    50: '#b272d3',
    500: '#8b31bf',
    950: '#000000',
  },
}
SCSS
$custom: #8b31bf;
$custom-light: #b272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31bf",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 278.028,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51249,
    "c": 0.21214,
    "h": 309.7
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#8B31BF
secondary
#9CCB81
accent
#E2457F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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