#8731A2#8731A2

#8731A2 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.7% C 0.183 H 317.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8731A2
RGBrgb(135, 49, 162)
HSLhsl(286, 54%, 41%)
HSVhsv(286, 70%, 64%)
CMYKcmyk(16.7%, 69.8%, 0%, 36.5%)
CIE-LABlab(37.77, 53.30, -44.53)
CIE-LCHlch(37.77, 69.45, 320.13°)
OKLaboklab(48.68% 0.1339 -0.125)
OKLCHoklch(48.68% 0.183 317)
XYZxyz(17.6106, 9.9569, 35.1696)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731A2 #4CA231
analogous
#4F31A2 #8731A2 #A23185
triadic
#8731A2 #A28731 #31A287
tetradic
#8731A2 #A24F31 #4CA231 #3185A2
square
#8731A2 #A24F31 #4CA231 #3185A2
split-complementary
#8731A2 #85A231 #31A24F
monochromatic
#391544 #602373 #8731A2 #A948C8 #BF77D6

Accessibility & contrast

On white

7.02
#8731A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8731A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8731A2
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731A2#FFFFFF#000000##FFFFFF
##8731A21.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#335B9F
Tritanopia (blue-blind)
#864766
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8731a2;
/* rgb */ color: rgb(135, 49, 162);
/* oklch */ color: oklch(48.7% 0.183 317.0);
Tailwind
colors: {
  custom: {
    50: '#ad70be',
    500: '#8731a2',
    950: '#000000',
  },
}
SCSS
$custom: #8731a2;
$custom-light: #ad70be;
$custom-dark: #000000;
JSON
{
  "hex": "#8731a2",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 285.664,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48681,
    "c": 0.18323,
    "h": 317
  },
  "luminance": 0.09956
}

Semantic roles & 50–950 ramp

primary
#8731A2
secondary
#83BE71
accent
#DD4B6E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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