#8D31C7#8D31C7

#8D31C7 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.1% C 0.220 H 308.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8D31C7
RGBrgb(141, 49, 199)
HSLhsl(277, 60%, 49%)
HSVhsv(277, 75%, 78%)
CMYKcmyk(29.1%, 75.4%, 0%, 22%)
CIE-LABlab(41.19, 62.29, -60.83)
CIE-LCHlch(41.19, 87.06, 315.68°)
OKLaboklab(52.1% 0.1367 -0.1727)
OKLCHoklch(52.1% 0.22 308.4)
XYZxyz(22.3895, 11.9832, 55.1553)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C7 #6BC731
analogous
#4231C7 #8D31C7 #C731B6
triadic
#8D31C7 #C78D31 #31C78D
tetradic
#8D31C7 #C74231 #6BC731 #31B6C7
square
#8D31C7 #C74231 #6BC731 #31B6C7
split-complementary
#8D31C7 #B6C731 #31C742
monochromatic
#471965 #6A2596 #8D31C7 #A85ED7 #C38FE3

Accessibility & contrast

On white

6.18
#8D31C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8D31C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C7#FFFFFF#000000##FFFFFF
##8D31C71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0062C4
Tritanopia (blue-blind)
#84567A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d31c7;
/* rgb */ color: rgb(141, 49, 199);
/* oklch */ color: oklch(52.1% 0.220 308.4);
Tailwind
colors: {
  custom: {
    50: '#b473d9',
    500: '#8d31c7',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c7;
$custom-light: #b473d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c7",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 276.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52102,
    "c": 0.22025,
    "h": 308.4
  },
  "luminance": 0.11983
}

Semantic roles & 50–950 ramp

primary
#8D31C7
secondary
#A2CE86
accent
#E44482
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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