#8731C1#8731C1

#8731C1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.213 H 307.6°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8731C1
RGBrgb(135, 49, 193)
HSLhsl(276, 60%, 47%)
HSVhsv(276, 75%, 76%)
CMYKcmyk(30.1%, 74.6%, 0%, 24.3%)
CIE-LABlab(39.91, 59.89, -59.44)
CIE-LCHlch(39.91, 84.38, 315.22°)
OKLaboklab(50.89% 0.1298 -0.1688)
OKLCHoklch(50.89% 0.213 307.6)
XYZxyz(20.7136, 11.1981, 51.5120)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C1 #6BC131
analogous
#3F31C1 #8731C1 #C131B3
triadic
#8731C1 #C18731 #31C187
tetradic
#8731C1 #C13F31 #6BC131 #31B3C1
square
#8731C1 #C13F31 #6BC131 #31B3C1
split-complementary
#8731C1 #B3C131 #31C13F
monochromatic
#43185F #652590 #8731C1 #A45AD5 #BF8BE2

Accessibility & contrast

On white

6.48
#8731C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8731C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C1#FFFFFF#000000##FFFFFF
##8731C11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#005FBE
Tritanopia (blue-blind)
#7D5477
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8731c1;
/* rgb */ color: rgb(135, 49, 193);
/* oklch */ color: oklch(50.9% 0.213 307.6);
Tailwind
colors: {
  custom: {
    50: '#af72d5',
    500: '#8731c1',
    950: '#000000',
  },
}
SCSS
$custom: #8731c1;
$custom-light: #af72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c1",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 275.833,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50887,
    "c": 0.21297,
    "h": 307.6
  },
  "luminance": 0.11198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8731C1

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

Preview Lab → · Contrast checker → · Palette generator →

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