#8B31BD#8B31BD

#8B31BD is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.210 H 310.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8B31BD
RGBrgb(139, 49, 189)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 74%)
CMYKcmyk(26.5%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.18, 59.77, -56.64)
CIE-LCHlch(40.18, 82.34, 316.54°)
OKLaboklab(51.1% 0.1359 -0.1605)
OKLCHoklch(51.1% 0.21 310.3)
XYZxyz(20.9293, 11.3602, 49.2244)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31BD #63BD31
analogous
#4531BD #8B31BD #BD31A9
triadic
#8B31BD #BD8B31 #31BD8B
tetradic
#8B31BD #BD4531 #63BD31 #31A9BD
square
#8B31BD #BD4531 #63BD31 #31A9BD
split-complementary
#8B31BD #A9BD31 #31BD45
monochromatic
#44185C #67248C #8B31BD #A758D4 #C188E0

Accessibility & contrast

On white

6.42
#8B31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8B31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31BD
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31BD#FFFFFF#000000##FFFFFF
##8B31BD1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#1060BA
Tritanopia (blue-blind)
#845275
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b31bd;
/* rgb */ color: rgb(139, 49, 189);
/* oklch */ color: oklch(51.1% 0.210 310.3);
Tailwind
colors: {
  custom: {
    50: '#b272d2',
    500: '#8b31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8b31bd;
$custom-light: #b272d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31bd",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 278.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.21025,
    "h": 310.3
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#8B31BD
secondary
#9ACA80
accent
#E2467E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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