#8B31AE#8B31AE

#8B31AE is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.196 H 314.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8B31AE
RGBrgb(139, 49, 174)
HSLhsl(283, 56%, 44%)
HSVhsv(283, 72%, 68%)
CMYKcmyk(20.1%, 71.8%, 0%, 31.8%)
CIE-LABlab(39.14, 56.63, -49.45)
CIE-LCHlch(39.14, 75.18, 318.87°)
OKLaboklab(50.04% 0.1379 -0.1394)
OKLCHoklch(50.04% 0.196 314.7)
XYZxyz(19.3845, 10.7423, 41.0885)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31AE #54AE31
analogous
#4C31AE #8B31AE #AE3192
triadic
#8B31AE #AE8B31 #31AE8B
tetradic
#8B31AE #AE4C31 #54AE31 #3192AE
square
#8B31AE #AE4C31 #54AE31 #3192AE
split-complementary
#8B31AE #92AE31 #31AE4C
monochromatic
#3F164E #65247E #8B31AE #AA4FCD #C17FDB

Accessibility & contrast

On white

6.67
#8B31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B31AE
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31AE#FFFFFF#000000##FFFFFF
##8B31AE1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#2C5EAB
Tritanopia (blue-blind)
#884B6C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b31ae;
/* rgb */ color: rgb(139, 49, 174);
/* oklch */ color: oklch(50.0% 0.196 314.7);
Tailwind
colors: {
  custom: {
    50: '#b171c7',
    500: '#8b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #8b31ae;
$custom-light: #b171c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31ae",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 283.2,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50037,
    "c": 0.19609,
    "h": 314.7
  },
  "luminance": 0.10742
}

Semantic roles & 50–950 ramp

primary
#8B31AE
secondary
#8DC477
accent
#DF4873
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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