#8D31BD#8D31BD

#8D31BD is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.211 H 311.1°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8D31BD
RGBrgb(141, 49, 189)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 74%)
CMYKcmyk(25.4%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.47, 60.16, -56.16)
CIE-LCHlch(40.47, 82.30, 316.97°)
OKLaboklab(51.36% 0.1385 -0.159)
OKLCHoklch(51.36% 0.211 311.1)
XYZxyz(21.2664, 11.5340, 49.2402)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31BD #61BD31
analogous
#4731BD #8D31BD #BD31A7
triadic
#8D31BD #BD8D31 #31BD8D
tetradic
#8D31BD #BD4731 #61BD31 #31A7BD
square
#8D31BD #BD4731 #61BD31 #31A7BD
split-complementary
#8D31BD #A7BD31 #31BD47
monochromatic
#44185C #69248C #8D31BD #A958D4 #C288E0

Accessibility & contrast

On white

6.35
#8D31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8D31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31BD
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31BD#FFFFFF#000000##FFFFFF
##8D31BD1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d31bd;
/* rgb */ color: rgb(141, 49, 189);
/* oklch */ color: oklch(51.4% 0.211 311.1);
Tailwind
colors: {
  custom: {
    50: '#b372d2',
    500: '#8d31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8d31bd;
$custom-light: #b372d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31bd",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 279.429,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51363,
    "c": 0.21084,
    "h": 311.1
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#8D31BD
secondary
#99CA80
accent
#E2467B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8D31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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