#8A31A8#8A31A8

#8A31A8 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.190 H 316.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A31A8
RGBrgb(138, 49, 168)
HSLhsl(285, 55%, 43%)
HSVhsv(285, 71%, 66%)
CMYKcmyk(17.9%, 70.8%, 0%, 34.1%)
CIE-LABlab(38.60, 55.19, -46.76)
CIE-LCHlch(38.60, 72.33, 319.73°)
OKLaboklab(49.49% 0.1373 -0.1315)
OKLCHoklch(49.49% 0.19 316.2)
XYZxyz(18.6463, 10.4278, 38.0687)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A8 #4FA831
analogous
#4E31A8 #8A31A8 #A8318A
triadic
#8A31A8 #A88A31 #31A88A
tetradic
#8A31A8 #A84E31 #4FA831 #318AA8
square
#8A31A8 #A84E31 #4FA831 #318AA8
split-complementary
#8A31A8 #8AA831 #31A84E
monochromatic
#3C1549 #632379 #8A31A8 #AB4CCB #C17BD8

Accessibility & contrast

On white

6.81
#8A31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A31A8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A8#FFFFFF#000000##FFFFFF
##8A31A81.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#315DA5
Tritanopia (blue-blind)
#884969
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a31a8;
/* rgb */ color: rgb(138, 49, 168);
/* oklch */ color: oklch(49.5% 0.190 316.2);
Tailwind
colors: {
  custom: {
    50: '#b071c2',
    500: '#8a31a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a8;
$custom-light: #b071c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a8",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 284.874,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49493,
    "c": 0.19009,
    "h": 316.2
  },
  "luminance": 0.10427
}

Semantic roles & 50–950 ramp

primary
#8A31A8
secondary
#87C174
accent
#DE4A6F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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