#8A31AD#8A31AD

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

Color values

HEX#8A31AD
RGBrgb(138, 49, 173)
HSLhsl(283, 56%, 44%)
HSVhsv(283, 72%, 68%)
CMYKcmyk(20.2%, 71.7%, 0%, 32.2%)
CIE-LABlab(38.93, 56.21, -49.21)
CIE-LCHlch(38.93, 74.71, 318.80°)
OKLaboklab(49.83% 0.1368 -0.1387)
OKLCHoklch(49.83% 0.195 314.6)
XYZxyz(19.1211, 10.6177, 40.5692)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31AD #54AD31
analogous
#4C31AD #8A31AD #AD3192
triadic
#8A31AD #AD8A31 #31AD8A
tetradic
#8A31AD #AD4C31 #54AD31 #3192AD
square
#8A31AD #AD4C31 #54AD31 #3192AD
split-complementary
#8A31AD #92AD31 #31AD4C
monochromatic
#3E164E #64237D #8A31AD #A94ECD #C07EDA

Accessibility & contrast

On white

6.72
#8A31AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A31AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31AD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31AD#FFFFFF#000000##FFFFFF
##8A31AD1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#2B5EAA
Tritanopia (blue-blind)
#874B6C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a31ad;
/* rgb */ color: rgb(138, 49, 173);
/* oklch */ color: oklch(49.8% 0.195 314.6);
Tailwind
colors: {
  custom: {
    50: '#b071c6',
    500: '#8a31ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a31ad;
$custom-light: #b071c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31ad",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 283.065,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49833,
    "c": 0.19478,
    "h": 314.6
  },
  "luminance": 0.10617
}

Semantic roles & 50–950 ramp

primary
#8A31AD
secondary
#8CC377
accent
#DF4973
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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