#8A31A5#8A31A5

#8A31A5 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.187 H 317.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8A31A5
RGBrgb(138, 49, 165)
HSLhsl(286, 54%, 42%)
HSVhsv(286, 70%, 65%)
CMYKcmyk(16.4%, 70.3%, 0%, 35.3%)
CIE-LABlab(38.41, 54.58, -45.27)
CIE-LCHlch(38.41, 70.91, 320.32°)
OKLaboklab(49.29% 0.1375 -0.1272)
OKLCHoklch(49.29% 0.187 317.2)
XYZxyz(18.3701, 10.3173, 36.6138)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A5 #4CA531
analogous
#5031A5 #8A31A5 #A53186
triadic
#8A31A5 #A58A31 #31A58A
tetradic
#8A31A5 #A55031 #4CA531 #3186A5
square
#8A31A5 #A55031 #4CA531 #3186A5
split-complementary
#8A31A5 #86A531 #31A550
monochromatic
#3B1547 #632376 #8A31A5 #AC4AC9 #C179D7

Accessibility & contrast

On white

6.86
#8A31A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A31A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A5#FFFFFF#000000##FFFFFF
##8A31A51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#345DA2
Tritanopia (blue-blind)
#894867
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a31a5;
/* rgb */ color: rgb(138, 49, 165);
/* oklch */ color: oklch(49.3% 0.187 317.2);
Tailwind
colors: {
  custom: {
    50: '#b071c0',
    500: '#8a31a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a5;
$custom-light: #b071c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a5",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 286.034,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49293,
    "c": 0.18727,
    "h": 317.2
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#8A31A5
secondary
#84C072
accent
#DE4A6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A5

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

Preview Lab → · Contrast checker → · Palette generator →

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