#8A31B5#8A31B5

#8A31B5 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.202 H 312.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A31B5
RGBrgb(138, 49, 181)
HSLhsl(280, 57%, 45%)
HSVhsv(280, 73%, 71%)
CMYKcmyk(23.8%, 72.9%, 0%, 29%)
CIE-LABlab(39.47, 57.88, -53.08)
CIE-LCHlch(39.47, 78.53, 317.48°)
OKLaboklab(50.39% 0.1358 -0.15)
OKLCHoklch(50.39% 0.202 312.1)
XYZxyz(19.9185, 10.9366, 44.7688)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31B5 #5CB531
analogous
#4831B5 #8A31B5 #B5319E
triadic
#8A31B5 #B58A31 #31B58A
tetradic
#8A31B5 #B54831 #5CB531 #319EB5
square
#8A31B5 #B54831 #5CB531 #319EB5
split-complementary
#8A31B5 #9EB531 #31B548
monochromatic
#411755 #652485 #8A31B5 #A753D0 #C083DD

Accessibility & contrast

On white

6.59
#8A31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31B5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31B5#FFFFFF#000000##FFFFFF
##8A31B51.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#205FB2
Tritanopia (blue-blind)
#854E70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a31b5;
/* rgb */ color: rgb(138, 49, 181);
/* oklch */ color: oklch(50.4% 0.202 312.1);
Tailwind
colors: {
  custom: {
    50: '#b072cc',
    500: '#8a31b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a31b5;
$custom-light: #b072cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31b5",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 280.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50394,
    "c": 0.20235,
    "h": 312.1
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#8A31B5
secondary
#94C77B
accent
#E14779
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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