#8D31BB#8D31BB

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

Color values

HEX#8D31BB
RGBrgb(141, 49, 187)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 74%, 73%)
CMYKcmyk(24.6%, 73.8%, 0%, 26.7%)
CIE-LABlab(40.32, 59.74, -55.21)
CIE-LCHlch(40.32, 81.34, 317.25°)
OKLaboklab(51.22% 0.1388 -0.1562)
OKLCHoklch(51.22% 0.209 311.6)
XYZxyz(21.0508, 11.4478, 48.1048)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31BB #5FBB31
analogous
#4831BB #8D31BB #BB31A4
triadic
#8D31BB #BB8D31 #31BB8D
tetradic
#8D31BB #BB4831 #5FBB31 #31A4BB
square
#8D31BB #BB4831 #5FBB31 #31A4BB
split-complementary
#8D31BB #A4BB31 #31BB48
monochromatic
#44185A #68248B #8D31BB #A956D3 #C287E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D31BB#FFFFFF#000000##FFFFFF
##8D31BB1.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)
#005BBF
Deuteranopia (green-blind)
#1B61B8
Tritanopia (blue-blind)
#875074
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d31bb;
/* rgb */ color: rgb(141, 49, 187);
/* oklch */ color: oklch(51.2% 0.209 311.6);
Tailwind
colors: {
  custom: {
    50: '#b372d0',
    500: '#8d31bb',
    950: '#000000',
  },
}
SCSS
$custom: #8d31bb;
$custom-light: #b372d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31bb",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 280,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51219,
    "c": 0.20897,
    "h": 311.6
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#8D31BB
secondary
#97C97F
accent
#E2467A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8D31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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