#8A31B4#8A31B4

#8A31B4 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.3% C 0.201 H 312.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A31B4
RGBrgb(138, 49, 180)
HSLhsl(281, 57%, 45%)
HSVhsv(281, 73%, 71%)
CMYKcmyk(23.3%, 72.8%, 0%, 29.4%)
CIE-LABlab(39.40, 57.67, -52.60)
CIE-LCHlch(39.40, 78.05, 317.63°)
OKLaboklab(50.32% 0.1359 -0.1486)
OKLCHoklch(50.32% 0.201 312.4)
XYZxyz(19.8163, 10.8958, 44.2304)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B4 #5BB431
analogous
#4831B4 #8A31B4 #B4319D
triadic
#8A31B4 #B48A31 #31B48A
tetradic
#8A31B4 #B44831 #5BB431 #319DB4
square
#8A31B4 #B44831 #5BB431 #319DB4
split-complementary
#8A31B4 #9DB431 #31B448
monochromatic
#401754 #652484 #8A31B4 #A852D0 #C082DD

Accessibility & contrast

On white

6.61
#8A31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B4#FFFFFF#000000##FFFFFF
##8A31B41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#225FB1
Tritanopia (blue-blind)
#854E70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b4;
/* rgb */ color: rgb(138, 49, 180);
/* oklch */ color: oklch(50.3% 0.201 312.4);
Tailwind
colors: {
  custom: {
    50: '#b072cb',
    500: '#8a31b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b4;
$custom-light: #b072cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b4",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 280.763,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.2014,
    "h": 312.4
  },
  "luminance": 0.10895
}

Semantic roles & 50–950 ramp

primary
#8A31B4
secondary
#93C67B
accent
#E04778
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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