#8D31C8#8D31C8

#8D31C8 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.2% C 0.221 H 308.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8D31C8
RGBrgb(141, 49, 200)
HSLhsl(277, 61%, 49%)
HSVhsv(277, 76%, 78%)
CMYKcmyk(29.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(41.26, 62.51, -61.29)
CIE-LCHlch(41.26, 87.54, 315.56°)
OKLaboklab(52.18% 0.1365 -0.1741)
OKLCHoklch(52.18% 0.221 308.1)
XYZxyz(22.5060, 12.0298, 55.7688)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31C8 #6CC831
analogous
#4131C8 #8D31C8 #C831B8
triadic
#8D31C8 #C88D31 #31C88D
tetradic
#8D31C8 #C84131 #6CC831 #31B8C8
square
#8D31C8 #C84131 #6CC831 #31B8C8
split-complementary
#8D31C8 #B8C831 #31C841
monochromatic
#481966 #6A2597 #8D31C8 #A85FD8 #C390E4

Accessibility & contrast

On white

6.17
#8D31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8D31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31C8
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31C8#FFFFFF#000000##FFFFFF
##8D31C81.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#83567B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8d31c8;
/* rgb */ color: rgb(141, 49, 200);
/* oklch */ color: oklch(52.2% 0.221 308.1);
Tailwind
colors: {
  custom: {
    50: '#b473da',
    500: '#8d31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8d31c8;
$custom-light: #b473da;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31c8",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 276.556,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.2212,
    "h": 308.1
  },
  "luminance": 0.12029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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