#8D31AF#8D31AF

#8D31AF is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.198 H 315.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8D31AF
RGBrgb(141, 49, 175)
HSLhsl(284, 56%, 44%)
HSVhsv(284, 72%, 69%)
CMYKcmyk(19.4%, 72%, 0%, 31.4%)
CIE-LABlab(39.50, 57.25, -49.45)
CIE-LCHlch(39.50, 75.65, 319.18°)
OKLaboklab(50.38% 0.1404 -0.1393)
OKLCHoklch(50.38% 0.198 315.2)
XYZxyz(19.8194, 10.9552, 41.6197)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31AF #53AF31
analogous
#4E31AF #8D31AF #AF3192
triadic
#8D31AF #AF8D31 #31AF8D
tetradic
#8D31AF #AF4E31 #53AF31 #3192AF
square
#8D31AF #AF4E31 #53AF31 #3192AF
split-complementary
#8D31AF #92AF31 #31AF4E
monochromatic
#40164F #66247F #8D31AF #AC4FCE #C27FDB

Accessibility & contrast

On white

6.58
#8D31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D31AF
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31AF#FFFFFF#000000##FFFFFF
##8D31AF1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#2D5FAC
Tritanopia (blue-blind)
#8A4B6D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d31af;
/* rgb */ color: rgb(141, 49, 175);
/* oklch */ color: oklch(50.4% 0.198 315.2);
Tailwind
colors: {
  custom: {
    50: '#b272c8',
    500: '#8d31af',
    950: '#000000',
  },
}
SCSS
$custom: #8d31af;
$custom-light: #b272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31af",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 283.81,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50377,
    "c": 0.19776,
    "h": 315.2
  },
  "luminance": 0.10954
}

Semantic roles & 50–950 ramp

primary
#8D31AF
secondary
#8CC478
accent
#E04871
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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