#8A31AA#8A31AA

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

Color values

HEX#8A31AA
RGBrgb(138, 49, 170)
HSLhsl(284, 55%, 43%)
HSVhsv(284, 71%, 67%)
CMYKcmyk(18.8%, 71.2%, 0%, 33.3%)
CIE-LABlab(38.73, 55.59, -47.74)
CIE-LCHlch(38.73, 73.28, 319.34°)
OKLaboklab(49.63% 0.1371 -0.1344)
OKLCHoklch(49.63% 0.192 315.6)
XYZxyz(18.8341, 10.5029, 39.0576)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31AA #51AA31
analogous
#4D31AA #8A31AA #AA318D
triadic
#8A31AA #AA8A31 #31AA8A
tetradic
#8A31AA #AA4D31 #51AA31 #318DAA
square
#8A31AA #AA4D31 #51AA31 #318DAA
split-complementary
#8A31AA #8DAA31 #31AA4D
monochromatic
#3D164B #63237A #8A31AA #AA4DCC #C17CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A31AA#FFFFFF#000000##FFFFFF
##8A31AA1.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)
#0056AD
Deuteranopia (green-blind)
#2F5EA7
Tritanopia (blue-blind)
#884A6A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31aa;
/* rgb */ color: rgb(138, 49, 170);
/* oklch */ color: oklch(49.6% 0.192 315.6);
Tailwind
colors: {
  custom: {
    50: '#b071c4',
    500: '#8a31aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a31aa;
$custom-light: #b071c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31aa",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 284.132,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49628,
    "c": 0.19196,
    "h": 315.6
  },
  "luminance": 0.10502
}

Semantic roles & 50–950 ramp

primary
#8A31AA
secondary
#89C275
accent
#DF4971
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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