#8A31A6#8A31A6

#8A31A6 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.188 H 316.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A31A6
RGBrgb(138, 49, 166)
HSLhsl(286, 54%, 42%)
HSVhsv(286, 70%, 65%)
CMYKcmyk(16.9%, 70.5%, 0%, 34.9%)
CIE-LABlab(38.47, 54.78, -45.77)
CIE-LCHlch(38.47, 71.39, 320.12°)
OKLaboklab(49.36% 0.1374 -0.1286)
OKLCHoklch(49.36% 0.188 316.9)
XYZxyz(18.4615, 10.3538, 37.0950)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A6 #4DA631
analogous
#5031A6 #8A31A6 #A63188
triadic
#8A31A6 #A68A31 #31A68A
tetradic
#8A31A6 #A65031 #4DA631 #3188A6
square
#8A31A6 #A65031 #4DA631 #3188A6
split-complementary
#8A31A6 #88A631 #31A650
monochromatic
#3B1547 #632377 #8A31A6 #AB4ACA #C17AD8

Accessibility & contrast

On white

6.84
#8A31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A31A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A6
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A6#FFFFFF#000000##FFFFFF
##8A31A61.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#335DA3
Tritanopia (blue-blind)
#894868
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31a6;
/* rgb */ color: rgb(138, 49, 166);
/* oklch */ color: oklch(49.4% 0.188 316.9);
Tailwind
colors: {
  custom: {
    50: '#b071c1',
    500: '#8a31a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a6;
$custom-light: #b071c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a6",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 285.641,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4936,
    "c": 0.18821,
    "h": 316.9
  },
  "luminance": 0.10353
}

Semantic roles & 50–950 ramp

primary
#8A31A6
secondary
#85C073
accent
#DE4A6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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