#8D31A7#8D31A7

#8D31A7 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.190 H 317.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8D31A7
RGBrgb(141, 49, 167)
HSLhsl(287, 55%, 42%)
HSVhsv(287, 71%, 65%)
CMYKcmyk(15.6%, 70.7%, 0%, 34.5%)
CIE-LABlab(38.98, 55.64, -45.52)
CIE-LCHlch(38.98, 71.89, 320.71°)
OKLaboklab(49.84% 0.1411 -0.1278)
OKLCHoklch(49.84% 0.19 317.8)
XYZxyz(19.0569, 10.6502, 37.6036)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31A7 #4BA731
analogous
#5231A7 #8D31A7 #A73186
triadic
#8D31A7 #A78D31 #31A78D
tetradic
#8D31A7 #A75231 #4BA731 #3186A7
square
#8D31A7 #A75231 #4BA731 #3186A7
split-complementary
#8D31A7 #86A731 #31A752
monochromatic
#3D1548 #652378 #8D31A7 #AE4BCA #C37AD8

Accessibility & contrast

On white

6.71
#8D31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8D31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31A7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31A7#FFFFFF#000000##FFFFFF
##8D31A71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#355FA4
Tritanopia (blue-blind)
#8C4869
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d31a7;
/* rgb */ color: rgb(141, 49, 167);
/* oklch */ color: oklch(49.8% 0.190 317.8);
Tailwind
colors: {
  custom: {
    50: '#b271c2',
    500: '#8d31a7',
    950: '#000000',
  },
}
SCSS
$custom: #8d31a7;
$custom-light: #b271c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31a7",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 286.78,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4984,
    "c": 0.19035,
    "h": 317.8
  },
  "luminance": 0.10649
}

Semantic roles & 50–950 ramp

primary
#8D31A7
secondary
#84C173
accent
#DE4A6A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8D31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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