#8D31BA#8D31BA

#8D31BA is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.1% C 0.208 H 311.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8D31BA
RGBrgb(141, 49, 186)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 74%, 73%)
CMYKcmyk(24.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(40.25, 59.53, -54.74)
CIE-LCHlch(40.25, 80.87, 317.40°)
OKLaboklab(51.15% 0.139 -0.1548)
OKLCHoklch(51.15% 0.208 311.9)
XYZxyz(20.9441, 11.4051, 47.5430)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31BA #5EBA31
analogous
#4831BA #8D31BA #BA31A2
triadic
#8D31BA #BA8D31 #31BA8D
tetradic
#8D31BA #BA4831 #5EBA31 #31A2BA
square
#8D31BA #BA4831 #5EBA31 #31A2BA
split-complementary
#8D31BA #A2BA31 #31BA48
monochromatic
#441759 #68248A #8D31BA #A956D2 #C286DF

Accessibility & contrast

On white

6.40
#8D31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8D31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31BA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31BA#FFFFFF#000000##FFFFFF
##8D31BA1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#1D61B7
Tritanopia (blue-blind)
#885073
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d31ba;
/* rgb */ color: rgb(141, 49, 186);
/* oklch */ color: oklch(51.1% 0.208 311.9);
Tailwind
colors: {
  custom: {
    50: '#b372cf',
    500: '#8d31ba',
    950: '#000000',
  },
}
SCSS
$custom: #8d31ba;
$custom-light: #b372cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31ba",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 280.292,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51147,
    "c": 0.20803,
    "h": 311.9
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

primary
#8D31BA
secondary
#97C97E
accent
#E24679
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8D31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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