#8731C3#8731C3

#8731C3 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.215 H 307.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8731C3
RGBrgb(135, 49, 195)
HSLhsl(275, 60%, 48%)
HSVhsv(275, 75%, 76%)
CMYKcmyk(30.8%, 74.9%, 0%, 23.5%)
CIE-LABlab(40.06, 60.33, -60.37)
CIE-LCHlch(40.06, 85.35, 314.98°)
OKLaboklab(51.04% 0.1294 -0.1716)
OKLCHoklch(51.04% 0.215 307)
XYZxyz(20.9382, 11.2879, 52.6949)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C3 #6DC331
analogous
#3E31C3 #8731C3 #C331B6
triadic
#8731C3 #C38731 #31C387
tetradic
#8731C3 #C33E31 #6DC331 #31B6C3
square
#8731C3 #C33E31 #6DC331 #31B6C3
split-complementary
#8731C3 #B6C331 #31C33E
monochromatic
#431861 #652592 #8731C3 #A45BD6 #BF8CE2

Accessibility & contrast

On white

6.45
#8731C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8731C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C3
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C3#FFFFFF#000000##FFFFFF
##8731C31.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#7D5578
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8731c3;
/* rgb */ color: rgb(135, 49, 195);
/* oklch */ color: oklch(51.0% 0.215 307.0);
Tailwind
colors: {
  custom: {
    50: '#af72d6',
    500: '#8731c3',
    950: '#000000',
  },
}
SCSS
$custom: #8731c3;
$custom-light: #af72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c3",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 275.342,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51039,
    "c": 0.21489,
    "h": 307
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8731C3

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

Preview Lab → · Contrast checker → · Palette generator →

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