#8D31C0#8D31C0

#8D31C0 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.6% C 0.214 H 310.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8D31C0
RGBrgb(141, 49, 192)
HSLhsl(279, 59%, 47%)
HSVhsv(279, 74%, 75%)
CMYKcmyk(26.6%, 74.5%, 0%, 24.7%)
CIE-LABlab(40.68, 60.79, -57.57)
CIE-LCHlch(40.68, 83.73, 316.56°)
OKLaboklab(51.58% 0.138 -0.1631)
OKLCHoklch(51.58% 0.214 310.2)
XYZxyz(21.5954, 11.6656, 50.9730)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C0 #64C031
analogous
#4531C0 #8D31C0 #C031AC
triadic
#8D31C0 #C08D31 #31C08D
tetradic
#8D31C0 #C04531 #64C031 #31ACC0
square
#8D31C0 #C04531 #64C031 #31ACC0
split-complementary
#8D31C0 #ACC031 #31C045
monochromatic
#45185E #69258F #8D31C0 #A959D5 #C28AE1

Accessibility & contrast

On white

6.30
#8D31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8D31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C0
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C0#FFFFFF#000000##FFFFFF
##8D31C01.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#0D61BD
Tritanopia (blue-blind)
#865376
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8d31c0;
/* rgb */ color: rgb(141, 49, 192);
/* oklch */ color: oklch(51.6% 0.214 310.2);
Tailwind
colors: {
  custom: {
    50: '#b372d4',
    500: '#8d31c0',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c0;
$custom-light: #b372d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c0",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 278.601,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51582,
    "c": 0.21367,
    "h": 310.2
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#8D31C0
secondary
#9CCB82
accent
#E3457D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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