#8731B0#8731B0

#8731B0 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.197 H 312.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8731B0
RGBrgb(135, 49, 176)
HSLhsl(281, 56%, 44%)
HSVhsv(281, 72%, 69%)
CMYKcmyk(23.3%, 72.2%, 0%, 31%)
CIE-LABlab(38.70, 56.21, -51.39)
CIE-LCHlch(38.70, 76.17, 317.57°)
OKLaboklab(49.64% 0.1325 -0.1452)
OKLCHoklch(49.64% 0.197 312.4)
XYZxyz(18.9250, 10.4826, 42.0923)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731B0 #5AB031
analogous
#4831B0 #8731B0 #B0319A
triadic
#8731B0 #B08731 #31B087
tetradic
#8731B0 #B04831 #5AB031 #319AB0
square
#8731B0 #B04831 #5AB031 #319AB0
split-complementary
#8731B0 #9AB031 #31B048
monochromatic
#3E1650 #622480 #8731B0 #A550CE #BE80DC

Accessibility & contrast

On white

6.78
#8731B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8731B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731B0
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731B0#FFFFFF#000000##FFFFFF
##8731B01.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B4
Deuteranopia (green-blind)
#235DAD
Tritanopia (blue-blind)
#824D6D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8731b0;
/* rgb */ color: rgb(135, 49, 176);
/* oklch */ color: oklch(49.6% 0.197 312.4);
Tailwind
colors: {
  custom: {
    50: '#ae71c8',
    500: '#8731b0',
    950: '#000000',
  },
}
SCSS
$custom: #8731b0;
$custom-light: #ae71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8731b0",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 280.63,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49641,
    "c": 0.19659,
    "h": 312.4
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#8731B0
secondary
#91C578
accent
#E04879
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8731B0

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

Preview Lab → · Contrast checker → · Palette generator →

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