#8D31A3#8D31A3

#8D31A3 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.187 H 319.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8D31A3
RGBrgb(141, 49, 163)
HSLhsl(288, 54%, 42%)
HSVhsv(288, 70%, 64%)
CMYKcmyk(13.5%, 69.9%, 0%, 36.1%)
CIE-LABlab(38.73, 54.85, -43.53)
CIE-LCHlch(38.73, 70.02, 321.57°)
OKLaboklab(49.58% 0.1413 -0.1219)
OKLCHoklch(49.58% 0.187 319.2)
XYZxyz(18.6928, 10.5046, 35.6862)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31A3 #47A331
analogous
#5431A3 #8D31A3 #A33180
triadic
#8D31A3 #A38D31 #31A38D
tetradic
#8D31A3 #A35431 #47A331 #3180A3
square
#8D31A3 #A35431 #47A331 #3180A3
split-complementary
#8D31A3 #80A331 #31A354
monochromatic
#3C1545 #642374 #8D31A3 #B049C8 #C478D6

Accessibility & contrast

On white

6.77
#8D31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8D31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31A3
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31A3#FFFFFF#000000##FFFFFF
##8D31A31.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A6
Deuteranopia (green-blind)
#395EA0
Tritanopia (blue-blind)
#8D4666
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d31a3;
/* rgb */ color: rgb(141, 49, 163);
/* oklch */ color: oklch(49.6% 0.187 319.2);
Tailwind
colors: {
  custom: {
    50: '#b271bf',
    500: '#8d31a3',
    950: '#000000',
  },
}
SCSS
$custom: #8d31a3;
$custom-light: #b271bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31a3",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 288.421,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.18667,
    "h": 319.2
  },
  "luminance": 0.10504
}

Semantic roles & 50–950 ramp

primary
#8D31A3
secondary
#80BF71
accent
#DD4B67
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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