#8D31C2#8D31C2

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

Color values

HEX#8D31C2
RGBrgb(141, 49, 194)
HSLhsl(278, 60%, 48%)
HSVhsv(278, 75%, 76%)
CMYKcmyk(27.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(40.82, 61.22, -58.51)
CIE-LCHlch(40.82, 84.68, 316.30°)
OKLaboklab(51.73% 0.1376 -0.1659)
OKLCHoklch(51.73% 0.216 309.7)
XYZxyz(21.8185, 11.7548, 52.1480)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C2 #66C231
analogous
#4431C2 #8D31C2 #C231AE
triadic
#8D31C2 #C28D31 #31C28D
tetradic
#8D31C2 #C24431 #66C231 #31AEC2
square
#8D31C2 #C24431 #66C231 #31AEC2
split-complementary
#8D31C2 #AEC231 #31C244
monochromatic
#461860 #692591 #8D31C2 #A95BD6 #C28CE2

Accessibility & contrast

On white

6.27
#8D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8D31C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C2#FFFFFF#000000##FFFFFF
##8D31C21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0462BF
Tritanopia (blue-blind)
#855378
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d31c2;
/* rgb */ color: rgb(141, 49, 194);
/* oklch */ color: oklch(51.7% 0.216 309.7);
Tailwind
colors: {
  custom: {
    50: '#b372d5',
    500: '#8d31c2',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c2;
$custom-light: #b372d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c2",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 278.069,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51729,
    "c": 0.21555,
    "h": 309.7
  },
  "luminance": 0.11754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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