#8D31BF#8D31BF

#8D31BF is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.213 H 310.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8D31BF
RGBrgb(141, 49, 191)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 75%)
CMYKcmyk(26.2%, 74.3%, 0%, 25.1%)
CIE-LABlab(40.61, 60.58, -57.10)
CIE-LCHlch(40.61, 83.25, 316.69°)
OKLaboklab(51.51% 0.1382 -0.1618)
OKLCHoklch(51.51% 0.213 310.5)
XYZxyz(21.4850, 11.6214, 50.3915)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31BF #63BF31
analogous
#4631BF #8D31BF #BF31AA
triadic
#8D31BF #BF8D31 #31BF8D
tetradic
#8D31BF #BF4631 #63BF31 #31AABF
square
#8D31BF #BF4631 #63BF31 #31AABF
split-complementary
#8D31BF #AABF31 #31BF46
monochromatic
#45185E #69258E #8D31BF #A959D4 #C28AE1

Accessibility & contrast

On white

6.32
#8D31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8D31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31BF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31BF#FFFFFF#000000##FFFFFF
##8D31BF1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#1161BC
Tritanopia (blue-blind)
#865276
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d31bf;
/* rgb */ color: rgb(141, 49, 191);
/* oklch */ color: oklch(51.5% 0.213 310.5);
Tailwind
colors: {
  custom: {
    50: '#b372d3',
    500: '#8d31bf',
    950: '#000000',
  },
}
SCSS
$custom: #8d31bf;
$custom-light: #b372d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31bf",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 278.873,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51509,
    "c": 0.21272,
    "h": 310.5
  },
  "luminance": 0.11621
}

Semantic roles & 50–950 ramp

primary
#8D31BF
secondary
#9BCB81
accent
#E2457D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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