#8D31B8#8D31B8

#8D31B8 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.0% C 0.206 H 312.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8D31B8
RGBrgb(141, 49, 184)
HSLhsl(281, 58%, 46%)
HSVhsv(281, 73%, 72%)
CMYKcmyk(23.4%, 73.4%, 0%, 27.8%)
CIE-LABlab(40.12, 59.11, -53.79)
CIE-LCHlch(40.12, 79.92, 317.70°)
OKLaboklab(51% 0.1393 -0.152)
OKLCHoklch(51% 0.206 312.5)
XYZxyz(20.7330, 11.3206, 46.4310)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31B8 #5CB831
analogous
#4931B8 #8D31B8 #B8319F
triadic
#8D31B8 #B88D31 #31B88D
tetradic
#8D31B8 #B84931 #5CB831 #319FB8
square
#8D31B8 #B84931 #5CB831 #319FB8
split-complementary
#8D31B8 #9FB831 #31B849
monochromatic
#431757 #682488 #8D31B8 #AA55D2 #C285DE

Accessibility & contrast

On white

6.43
#8D31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8D31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31B8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31B8#FFFFFF#000000##FFFFFF
##8D31B81.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#2160B5
Tritanopia (blue-blind)
#884F72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d31b8;
/* rgb */ color: rgb(141, 49, 184);
/* oklch */ color: oklch(51.0% 0.206 312.5);
Tailwind
colors: {
  custom: {
    50: '#b372ce',
    500: '#8d31b8',
    950: '#000000',
  },
}
SCSS
$custom: #8d31b8;
$custom-light: #b372ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31b8",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 280.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51004,
    "c": 0.20616,
    "h": 312.5
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

primary
#8D31B8
secondary
#95C87D
accent
#E14778
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8D31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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