#8A31A7#8A31A7

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

Color values

HEX#8A31A7
RGBrgb(138, 49, 167)
HSLhsl(285, 55%, 42%)
HSVhsv(285, 71%, 65%)
CMYKcmyk(17.4%, 70.7%, 0%, 34.5%)
CIE-LABlab(38.53, 54.98, -46.27)
CIE-LCHlch(38.53, 71.86, 319.92°)
OKLaboklab(49.43% 0.1373 -0.13)
OKLCHoklch(49.43% 0.189 316.6)
XYZxyz(18.5535, 10.3907, 37.5800)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A7 #4EA731
analogous
#4F31A7 #8A31A7 #A73189
triadic
#8A31A7 #A78A31 #31A78A
tetradic
#8A31A7 #A74F31 #4EA731 #3189A7
square
#8A31A7 #A74F31 #4EA731 #3189A7
split-complementary
#8A31A7 #89A731 #31A74F
monochromatic
#3C1548 #632378 #8A31A7 #AB4BCA #C17AD8

Accessibility & contrast

On white

6.82
#8A31A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A31A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A7
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A7#FFFFFF#000000##FFFFFF
##8A31A71.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#325DA4
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31a7;
/* rgb */ color: rgb(138, 49, 167);
/* oklch */ color: oklch(49.4% 0.189 316.6);
Tailwind
colors: {
  custom: {
    50: '#b071c2',
    500: '#8a31a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a7;
$custom-light: #b071c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a7",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 285.254,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49426,
    "c": 0.18914,
    "h": 316.6
  },
  "luminance": 0.1039
}

Semantic roles & 50–950 ramp

primary
#8A31A7
secondary
#86C173
accent
#DE4A6E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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