#8D31C5#8D31C5

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

Color values

HEX#8D31C5
RGBrgb(141, 49, 197)
HSLhsl(277, 60%, 48%)
HSVhsv(277, 75%, 77%)
CMYKcmyk(28.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(41.04, 61.86, -59.90)
CIE-LCHlch(41.04, 86.11, 315.92°)
OKLaboklab(51.95% 0.1371 -0.17)
OKLCHoklch(51.95% 0.218 308.9)
XYZxyz(22.1588, 11.8910, 53.9404)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C5 #69C531
analogous
#4331C5 #8D31C5 #C531B3
triadic
#8D31C5 #C58D31 #31C58D
tetradic
#8D31C5 #C54331 #69C531 #31B3C5
square
#8D31C5 #C54331 #69C531 #31B3C5
split-complementary
#8D31C5 #B3C531 #31C543
monochromatic
#471963 #6A2594 #8D31C5 #A85DD7 #C38EE3

Accessibility & contrast

On white

6.22
#8D31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8D31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C5#FFFFFF#000000##FFFFFF
##8D31C51.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#845579
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d31c5;
/* rgb */ color: rgb(141, 49, 197);
/* oklch */ color: oklch(52.0% 0.218 308.9);
Tailwind
colors: {
  custom: {
    50: '#b373d7',
    500: '#8d31c5',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c5;
$custom-light: #b373d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c5",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 277.297,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.21837,
    "h": 308.9
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#8D31C5
secondary
#A0CD85
accent
#E34481
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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