#8A31A3#8A31A3

#8A31A3 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.185 H 317.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8A31A3
RGBrgb(138, 49, 163)
HSLhsl(287, 54%, 42%)
HSVhsv(287, 70%, 64%)
CMYKcmyk(15.3%, 69.9%, 0%, 36.1%)
CIE-LABlab(38.28, 54.18, -44.28)
CIE-LCHlch(38.28, 69.97, 320.74°)
OKLaboklab(49.16% 0.1376 -0.1242)
OKLCHoklch(49.16% 0.185 317.9)
XYZxyz(18.1895, 10.2450, 35.6626)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A3 #4AA331
analogous
#5131A3 #8A31A3 #A33183
triadic
#8A31A3 #A38A31 #31A38A
tetradic
#8A31A3 #A35131 #4AA331 #3183A3
square
#8A31A3 #A35131 #4AA331 #3183A3
split-complementary
#8A31A3 #83A331 #31A351
monochromatic
#3A1545 #622374 #8A31A3 #AC49C8 #C278D6

Accessibility & contrast

On white

6.89
#8A31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A3#FFFFFF#000000##FFFFFF
##8A31A31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#365DA0
Tritanopia (blue-blind)
#894766
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a31a3;
/* rgb */ color: rgb(138, 49, 163);
/* oklch */ color: oklch(49.2% 0.185 317.9);
Tailwind
colors: {
  custom: {
    50: '#b071bf',
    500: '#8a31a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a3;
$custom-light: #b071bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a3",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 286.842,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49161,
    "c": 0.18541,
    "h": 317.9
  },
  "luminance": 0.10244
}

Semantic roles & 50–950 ramp

primary
#8A31A3
secondary
#82BF71
accent
#DD4B6B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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