#8A31B1#8A31B1

#8A31B1 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.199 H 313.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A31B1
RGBrgb(138, 49, 177)
HSLhsl(282, 57%, 44%)
HSVhsv(282, 72%, 69%)
CMYKcmyk(22%, 72.3%, 0%, 30.6%)
CIE-LABlab(39.20, 57.04, -51.15)
CIE-LCHlch(39.20, 76.62, 318.12°)
OKLaboklab(50.11% 0.1363 -0.1444)
OKLCHoklch(50.11% 0.199 313.4)
XYZxyz(19.5140, 10.7748, 42.6383)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B1 #58B131
analogous
#4A31B1 #8A31B1 #B13198
triadic
#8A31B1 #B18A31 #31B18A
tetradic
#8A31B1 #B14A31 #58B131 #3198B1
square
#8A31B1 #B14A31 #58B131 #3198B1
split-complementary
#8A31B1 #98B131 #31B14A
monochromatic
#3F1651 #652481 #8A31B1 #A851CF #C080DC

Accessibility & contrast

On white

6.66
#8A31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B1
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B1#FFFFFF#000000##FFFFFF
##8A31B11.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#265EAE
Tritanopia (blue-blind)
#864D6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a31b1;
/* rgb */ color: rgb(138, 49, 177);
/* oklch */ color: oklch(50.1% 0.199 313.4);
Tailwind
colors: {
  custom: {
    50: '#b071c9',
    500: '#8a31b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b1;
$custom-light: #b071c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b1",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 281.719,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50111,
    "c": 0.19856,
    "h": 313.4
  },
  "luminance": 0.10774
}

Semantic roles & 50–950 ramp

primary
#8A31B1
secondary
#90C579
accent
#E04876
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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