#8A31AC#8A31AC

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

Color values

HEX#8A31AC
RGBrgb(138, 49, 172)
HSLhsl(283, 56%, 43%)
HSVhsv(283, 72%, 67%)
CMYKcmyk(19.8%, 71.5%, 0%, 32.5%)
CIE-LABlab(38.86, 56.00, -48.72)
CIE-LCHlch(38.86, 74.23, 318.98°)
OKLaboklab(49.77% 0.1369 -0.1372)
OKLCHoklch(49.77% 0.194 314.9)
XYZxyz(19.0247, 10.5791, 40.0615)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31AC #53AC31
analogous
#4D31AC #8A31AC #AC3190
triadic
#8A31AC #AC8A31 #31AC8A
tetradic
#8A31AC #AC4D31 #53AC31 #3190AC
square
#8A31AC #AC4D31 #53AC31 #3190AC
split-complementary
#8A31AC #90AC31 #31AC4D
monochromatic
#3E164D #64237C #8A31AC #A94ECC #C07DDA

Accessibility & contrast

On white

6.74
#8A31AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A31AC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31AC#FFFFFF#000000##FFFFFF
##8A31AC1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#2D5EA9
Tritanopia (blue-blind)
#874B6B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31ac;
/* rgb */ color: rgb(138, 49, 172);
/* oklch */ color: oklch(49.8% 0.194 314.9);
Tailwind
colors: {
  custom: {
    50: '#b071c5',
    500: '#8a31ac',
    950: '#000000',
  },
}
SCSS
$custom: #8a31ac;
$custom-light: #b071c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31ac",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 283.415,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49765,
    "c": 0.19384,
    "h": 314.9
  },
  "luminance": 0.10578
}

Semantic roles & 50–950 ramp

primary
#8A31AC
secondary
#8BC376
accent
#DF4972
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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