#8D31B7#8D31B7

#8D31B7 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 50.9% C 0.205 H 312.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8D31B7
RGBrgb(141, 49, 183)
HSLhsl(281, 58%, 45%)
HSVhsv(281, 73%, 72%)
CMYKcmyk(23%, 73.2%, 0%, 28.2%)
CIE-LABlab(40.05, 58.90, -53.31)
CIE-LCHlch(40.05, 79.44, 317.85°)
OKLaboklab(50.93% 0.1394 -0.1506)
OKLCHoklch(50.93% 0.205 312.8)
XYZxyz(20.6285, 11.2789, 45.8809)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31B7 #5BB731
analogous
#4A31B7 #8D31B7 #B7319E
triadic
#8D31B7 #B78D31 #31B78D
tetradic
#8D31B7 #B74A31 #5BB731 #319EB7
square
#8D31B7 #B74A31 #5BB731 #319EB7
split-complementary
#8D31B7 #9EB731 #31B74A
monochromatic
#431756 #682487 #8D31B7 #AA54D1 #C284DE

Accessibility & contrast

On white

6.45
#8D31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8D31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31B7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31B7#FFFFFF#000000##FFFFFF
##8D31B71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#2260B4
Tritanopia (blue-blind)
#884F71
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d31b7;
/* rgb */ color: rgb(141, 49, 183);
/* oklch */ color: oklch(50.9% 0.205 312.8);
Tailwind
colors: {
  custom: {
    50: '#b372cd',
    500: '#8d31b7',
    950: '#000000',
  },
}
SCSS
$custom: #8d31b7;
$custom-light: #b372cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31b7",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 281.194,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50933,
    "c": 0.20522,
    "h": 312.8
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

primary
#8D31B7
secondary
#94C87C
accent
#E14777
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8D31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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