#8731C2#8731C2

#8731C2 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.0% C 0.214 H 307.3°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8731C2
RGBrgb(135, 49, 194)
HSLhsl(276, 60%, 48%)
HSVhsv(276, 75%, 76%)
CMYKcmyk(30.4%, 74.7%, 0%, 23.9%)
CIE-LABlab(39.99, 60.11, -59.90)
CIE-LCHlch(39.99, 84.86, 315.10°)
OKLaboklab(50.96% 0.1296 -0.1702)
OKLCHoklch(50.96% 0.214 307.3)
XYZxyz(20.8255, 11.2428, 52.1015)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C2 #6CC231
analogous
#3E31C2 #8731C2 #C231B5
triadic
#8731C2 #C28731 #31C287
tetradic
#8731C2 #C23E31 #6CC231 #31B5C2
square
#8731C2 #C23E31 #6CC231 #31B5C2
split-complementary
#8731C2 #B5C231 #31C23E
monochromatic
#431860 #652591 #8731C2 #A45BD6 #BF8CE2

Accessibility & contrast

On white

6.46
#8731C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8731C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C2#FFFFFF#000000##FFFFFF
##8731C21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#7D5478
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8731c2;
/* rgb */ color: rgb(135, 49, 194);
/* oklch */ color: oklch(51.0% 0.214 307.3);
Tailwind
colors: {
  custom: {
    50: '#af72d5',
    500: '#8731c2',
    950: '#000000',
  },
}
SCSS
$custom: #8731c2;
$custom-light: #af72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c2",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 275.586,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50963,
    "c": 0.21393,
    "h": 307.3
  },
  "luminance": 0.11243
}

Semantic roles & 50–950 ramp

primary
#8731C2
secondary
#A1CC83
accent
#E34585
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8731C2

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

Preview Lab → · Contrast checker → · Palette generator →

#8731C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva