#8A31B6#8A31B6

#8A31B6 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.5% C 0.203 H 311.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A31B6
RGBrgb(138, 49, 182)
HSLhsl(280, 58%, 45%)
HSVhsv(280, 73%, 71%)
CMYKcmyk(24.2%, 73.1%, 0%, 28.6%)
CIE-LABlab(39.54, 58.09, -53.55)
CIE-LCHlch(39.54, 79.01, 317.33°)
OKLaboklab(50.47% 0.1356 -0.1514)
OKLCHoklch(50.47% 0.203 311.8)
XYZxyz(20.0215, 10.9778, 45.3111)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B6 #5DB631
analogous
#4731B6 #8A31B6 #B631A0
triadic
#8A31B6 #B68A31 #31B68A
tetradic
#8A31B6 #B64731 #5DB631 #31A0B6
square
#8A31B6 #B64731 #5DB631 #31A0B6
split-complementary
#8A31B6 #A0B631 #31B647
monochromatic
#411756 #652486 #8A31B6 #A753D1 #C084DE

Accessibility & contrast

On white

6.57
#8A31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B6
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B6#FFFFFF#000000##FFFFFF
##8A31B61.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#1E5FB3
Tritanopia (blue-blind)
#854F71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b6;
/* rgb */ color: rgb(138, 49, 182);
/* oklch */ color: oklch(50.5% 0.203 311.8);
Tailwind
colors: {
  custom: {
    50: '#b072cd',
    500: '#8a31b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b6;
$custom-light: #b072cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b6",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 280.15,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50465,
    "c": 0.2033,
    "h": 311.8
  },
  "luminance": 0.10977
}

Semantic roles & 50–950 ramp

primary
#8A31B6
secondary
#95C77C
accent
#E1477A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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