#8731AB#8731AB

#8731AB is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.192 H 314.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8731AB
RGBrgb(135, 49, 171)
HSLhsl(282, 55%, 43%)
HSVhsv(282, 71%, 67%)
CMYKcmyk(21.1%, 71.3%, 0%, 32.9%)
CIE-LABlab(38.36, 55.16, -48.97)
CIE-LCHlch(38.36, 73.76, 318.40°)
OKLaboklab(49.29% 0.1331 -0.1381)
OKLCHoklch(49.29% 0.192 314)
XYZxyz(18.4394, 10.2884, 39.5347)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731AB #55AB31
analogous
#4A31AB #8731AB #AB3192
triadic
#8731AB #AB8731 #31AB87
tetradic
#8731AB #AB4A31 #55AB31 #3192AB
square
#8731AB #AB4A31 #55AB31 #3192AB
split-complementary
#8731AB #92AB31 #31AB4A
monochromatic
#3C164C #61237B #8731AB #A74DCC #BE7DDA

Accessibility & contrast

On white

6.87
#8731AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8731AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731AB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731AB#FFFFFF#000000##FFFFFF
##8731AB1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#295CA8
Tritanopia (blue-blind)
#844B6B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8731ab;
/* rgb */ color: rgb(135, 49, 171);
/* oklch */ color: oklch(49.3% 0.192 314.0);
Tailwind
colors: {
  custom: {
    50: '#ae71c5',
    500: '#8731ab',
    950: '#000000',
  },
}
SCSS
$custom: #8731ab;
$custom-light: #ae71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8731ab",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 282.295,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49291,
    "c": 0.19181,
    "h": 314
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#8731AB
secondary
#8CC275
accent
#DF4975
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8731AB

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

Preview Lab → · Contrast checker → · Palette generator →

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