#8731C5#8731C5

#8731C5 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.2% C 0.217 H 306.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8731C5
RGBrgb(135, 49, 197)
HSLhsl(275, 60%, 48%)
HSVhsv(275, 75%, 77%)
CMYKcmyk(31.5%, 75.1%, 0%, 22.7%)
CIE-LABlab(40.21, 60.77, -61.29)
CIE-LCHlch(40.21, 86.31, 314.76°)
OKLaboklab(51.19% 0.129 -0.1743)
OKLCHoklch(51.19% 0.217 306.5)
XYZxyz(21.1658, 11.3790, 53.8938)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C5 #6FC531
analogous
#3D31C5 #8731C5 #C531B9
triadic
#8731C5 #C58731 #31C587
tetradic
#8731C5 #C53D31 #6FC531 #31B9C5
square
#8731C5 #C53D31 #6FC531 #31B9C5
split-complementary
#8731C5 #B9C531 #31C53D
monochromatic
#441963 #652594 #8731C5 #A35DD7 #BF8EE3

Accessibility & contrast

On white

6.41
#8731C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8731C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C5#FFFFFF#000000##FFFFFF
##8731C51.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#7C5679
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8731c5;
/* rgb */ color: rgb(135, 49, 197);
/* oklch */ color: oklch(51.2% 0.217 306.5);
Tailwind
colors: {
  custom: {
    50: '#af72d7',
    500: '#8731c5',
    950: '#000000',
  },
}
SCSS
$custom: #8731c5;
$custom-light: #af72d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c5",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 274.865,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.21682,
    "h": 306.5
  },
  "luminance": 0.11379
}

Semantic roles & 50–950 ramp

primary
#8731C5
secondary
#A3CD85
accent
#E34487
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #8731C5

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

Preview Lab → · Contrast checker → · Palette generator →

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