#8D31B5#8D31B5

#8D31B5 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.8% C 0.203 H 313.4°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8D31B5
RGBrgb(141, 49, 181)
HSLhsl(282, 57%, 45%)
HSVhsv(282, 73%, 71%)
CMYKcmyk(22.1%, 72.9%, 0%, 29%)
CIE-LABlab(39.91, 58.48, -52.35)
CIE-LCHlch(39.91, 78.49, 318.17°)
OKLaboklab(50.79% 0.1397 -0.1478)
OKLCHoklch(50.79% 0.203 313.4)
XYZxyz(20.4218, 11.1962, 44.7924)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31B5 #59B531
analogous
#4B31B5 #8D31B5 #B5319B
triadic
#8D31B5 #B58D31 #31B58D
tetradic
#8D31B5 #B54B31 #59B531 #319BB5
square
#8D31B5 #B54B31 #59B531 #319BB5
split-complementary
#8D31B5 #9BB531 #31B54B
monochromatic
#421755 #672485 #8D31B5 #AA53D0 #C283DD

Accessibility & contrast

On white

6.48
#8D31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8D31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31B5
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31B5#FFFFFF#000000##FFFFFF
##8D31B51.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#2560B2
Tritanopia (blue-blind)
#894E70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8d31b5;
/* rgb */ color: rgb(141, 49, 181);
/* oklch */ color: oklch(50.8% 0.203 313.4);
Tailwind
colors: {
  custom: {
    50: '#b372cc',
    500: '#8d31b5',
    950: '#000000',
  },
}
SCSS
$custom: #8d31b5;
$custom-light: #b372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31b5",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 281.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50792,
    "c": 0.20335,
    "h": 313.4
  },
  "luminance": 0.11196
}

Semantic roles & 50–950 ramp

primary
#8D31B5
secondary
#92C77B
accent
#E14776
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8D31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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