#8A31A4#8A31A4

#8A31A4 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.186 H 317.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A31A4
RGBrgb(138, 49, 164)
HSLhsl(286, 54%, 42%)
HSVhsv(286, 70%, 64%)
CMYKcmyk(15.9%, 70.1%, 0%, 35.7%)
CIE-LABlab(38.34, 54.38, -44.78)
CIE-LCHlch(38.34, 70.44, 320.53°)
OKLaboklab(49.23% 0.1376 -0.1257)
OKLCHoklch(49.23% 0.186 317.6)
XYZxyz(18.2794, 10.2810, 36.1363)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A4 #4BA431
analogous
#5131A4 #8A31A4 #A43185
triadic
#8A31A4 #A48A31 #31A48A
tetradic
#8A31A4 #A45131 #4BA431 #3185A4
square
#8A31A4 #A45131 #4BA431 #3185A4
split-complementary
#8A31A4 #85A431 #31A451
monochromatic
#3B1546 #622375 #8A31A4 #AC49C9 #C279D7

Accessibility & contrast

On white

6.87
#8A31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A4#FFFFFF#000000##FFFFFF
##8A31A41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A7
Deuteranopia (green-blind)
#355DA1
Tritanopia (blue-blind)
#894767
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a31a4;
/* rgb */ color: rgb(138, 49, 164);
/* oklch */ color: oklch(49.2% 0.186 317.6);
Tailwind
colors: {
  custom: {
    50: '#b071bf',
    500: '#8a31a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a4;
$custom-light: #b071bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a4",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 286.435,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.18633,
    "h": 317.6
  },
  "luminance": 0.1028
}

Semantic roles & 50–950 ramp

primary
#8A31A4
secondary
#83BF72
accent
#DD4A6C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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