#8D31C6#8D31C6

#8D31C6 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.219 H 308.6°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8D31C6
RGBrgb(141, 49, 198)
HSLhsl(277, 60%, 48%)
HSVhsv(277, 75%, 78%)
CMYKcmyk(28.8%, 75.3%, 0%, 22.4%)
CIE-LABlab(41.12, 62.08, -60.37)
CIE-LCHlch(41.12, 86.59, 315.80°)
OKLaboklab(52.03% 0.1369 -0.1713)
OKLCHoklch(52.03% 0.219 308.6)
XYZxyz(22.2738, 11.9369, 54.5458)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C6 #6AC631
analogous
#4231C6 #8D31C6 #C631B4
triadic
#8D31C6 #C68D31 #31C68D
tetradic
#8D31C6 #C64231 #6AC631 #31B4C6
square
#8D31C6 #C64231 #6AC631 #31B4C6
split-complementary
#8D31C6 #B4C631 #31C642
monochromatic
#471964 #6A2595 #8D31C6 #A85DD7 #C38EE3

Accessibility & contrast

On white

6.20
#8D31C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8D31C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C6
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C6#FFFFFF#000000##FFFFFF
##8D31C61.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#84557A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d31c6;
/* rgb */ color: rgb(141, 49, 198);
/* oklch */ color: oklch(52.0% 0.219 308.6);
Tailwind
colors: {
  custom: {
    50: '#b473d8',
    500: '#8d31c6',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c6;
$custom-light: #b473d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c6",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 277.047,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52027,
    "c": 0.21931,
    "h": 308.6
  },
  "luminance": 0.11937
}

Semantic roles & 50–950 ramp

primary
#8D31C6
secondary
#A1CE85
accent
#E34481
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #8D31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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