#8D31C3#8D31C3

#8D31C3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.216 H 309.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8D31C3
RGBrgb(141, 49, 195)
HSLhsl(278, 60%, 48%)
HSVhsv(278, 75%, 76%)
CMYKcmyk(27.7%, 74.9%, 0%, 23.5%)
CIE-LABlab(40.90, 61.43, -58.97)
CIE-LCHlch(40.90, 85.16, 316.17°)
OKLaboklab(51.8% 0.1375 -0.1673)
OKLCHoklch(51.8% 0.216 309.4)
XYZxyz(21.9312, 11.7999, 52.7415)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C3 #67C331
analogous
#4431C3 #8D31C3 #C331B0
triadic
#8D31C3 #C38D31 #31C38D
tetradic
#8D31C3 #C34431 #67C331 #31B0C3
square
#8D31C3 #C34431 #67C331 #31B0C3
split-complementary
#8D31C3 #B0C331 #31C344
monochromatic
#461861 #6A2592 #8D31C3 #A95BD6 #C28CE2

Accessibility & contrast

On white

6.25
#8D31C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8D31C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C3
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C3#FFFFFF#000000##FFFFFF
##8D31C31.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#0062C0
Tritanopia (blue-blind)
#855478
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d31c3;
/* rgb */ color: rgb(141, 49, 195);
/* oklch */ color: oklch(51.8% 0.216 309.4);
Tailwind
colors: {
  custom: {
    50: '#b373d6',
    500: '#8d31c3',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c3;
$custom-light: #b373d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c3",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 277.808,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51803,
    "c": 0.21649,
    "h": 309.4
  },
  "luminance": 0.11799
}

Semantic roles & 50–950 ramp

primary
#8D31C3
secondary
#9ECC83
accent
#E3457F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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