#8A31B3#8A31B3

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

Color values

HEX#8A31B3
RGBrgb(138, 49, 179)
HSLhsl(281, 57%, 45%)
HSVhsv(281, 73%, 70%)
CMYKcmyk(22.9%, 72.6%, 0%, 29.8%)
CIE-LABlab(39.34, 57.46, -52.12)
CIE-LCHlch(39.34, 77.57, 317.79°)
OKLaboklab(50.25% 0.1361 -0.1472)
OKLCHoklch(50.25% 0.2 312.7)
XYZxyz(19.7148, 10.8552, 43.6958)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B3 #5AB331
analogous
#4931B3 #8A31B3 #B3319B
triadic
#8A31B3 #B38A31 #31B38A
tetradic
#8A31B3 #B34931 #5AB331 #319BB3
square
#8A31B3 #B34931 #5AB331 #319BB3
split-complementary
#8A31B3 #9BB331 #31B349
monochromatic
#401753 #652483 #8A31B3 #A852D0 #C082DD

Accessibility & contrast

On white

6.62
#8A31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B3
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B3#FFFFFF#000000##FFFFFF
##8A31B31.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#235FB0
Tritanopia (blue-blind)
#854E6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b3;
/* rgb */ color: rgb(138, 49, 179);
/* oklch */ color: oklch(50.3% 0.200 312.7);
Tailwind
colors: {
  custom: {
    50: '#b071ca',
    500: '#8a31b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b3;
$custom-light: #b071ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b3",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 281.077,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50252,
    "c": 0.20045,
    "h": 312.7
  },
  "luminance": 0.10855
}

Semantic roles & 50–950 ramp

primary
#8A31B3
secondary
#92C67A
accent
#E04878
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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