#8B31AF#8B31AF

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

Color values

HEX#8B31AF
RGBrgb(139, 49, 175)
HSLhsl(283, 56%, 44%)
HSVhsv(283, 72%, 69%)
CMYKcmyk(20.6%, 72%, 0%, 31.4%)
CIE-LABlab(39.21, 56.83, -49.94)
CIE-LCHlch(39.21, 75.66, 318.69°)
OKLaboklab(50.11% 0.1378 -0.1408)
OKLCHoklch(50.11% 0.197 314.4)
XYZxyz(19.4823, 10.7814, 41.6039)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31AF #55AF31
analogous
#4C31AF #8B31AF #AF3194
triadic
#8B31AF #AF8B31 #31AF8B
tetradic
#8B31AF #AF4C31 #55AF31 #3194AF
square
#8B31AF #AF4C31 #55AF31 #3194AF
split-complementary
#8B31AF #94AF31 #31AF4C
monochromatic
#3F164F #65247F #8B31AF #AA4FCE #C17FDB

Accessibility & contrast

On white

6.65
#8B31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8B31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31AF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31AF#FFFFFF#000000##FFFFFF
##8B31AF1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#2A5FAC
Tritanopia (blue-blind)
#884C6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b31af;
/* rgb */ color: rgb(139, 49, 175);
/* oklch */ color: oklch(50.1% 0.197 314.4);
Tailwind
colors: {
  custom: {
    50: '#b171c8',
    500: '#8b31af',
    950: '#000000',
  },
}
SCSS
$custom: #8b31af;
$custom-light: #b171c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31af",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 282.857,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50106,
    "c": 0.19703,
    "h": 314.4
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#8B31AF
secondary
#8EC478
accent
#E04873
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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