#8A31A9#8A31A9

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

Color values

HEX#8A31A9
RGBrgb(138, 49, 169)
HSLhsl(285, 55%, 43%)
HSVhsv(285, 71%, 66%)
CMYKcmyk(18.3%, 71%, 0%, 33.7%)
CIE-LABlab(38.66, 55.39, -47.25)
CIE-LCHlch(38.66, 72.81, 319.53°)
OKLaboklab(49.56% 0.1372 -0.1329)
OKLCHoklch(49.56% 0.191 315.9)
XYZxyz(18.7399, 10.4652, 38.5613)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A9 #50A931
analogous
#4E31A9 #8A31A9 #A9318C
triadic
#8A31A9 #A98A31 #31A98A
tetradic
#8A31A9 #A94E31 #50A931 #318CA9
square
#8A31A9 #A94E31 #50A931 #318CA9
split-complementary
#8A31A9 #8CA931 #31A94E
monochromatic
#3D154A #63237A #8A31A9 #AA4CCB #C17CD9

Accessibility & contrast

On white

6.79
#8A31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A31A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A9#FFFFFF#000000##FFFFFF
##8A31A91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#305DA6
Tritanopia (blue-blind)
#88496A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31a9;
/* rgb */ color: rgb(138, 49, 169);
/* oklch */ color: oklch(49.6% 0.191 315.9);
Tailwind
colors: {
  custom: {
    50: '#b071c3',
    500: '#8a31a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a9;
$custom-light: #b071c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a9",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 284.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.19102,
    "h": 315.9
  },
  "luminance": 0.10464
}

Semantic roles & 50–950 ramp

primary
#8A31A9
secondary
#88C174
accent
#DE4970
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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