#8731B8#8731B8

#8731B8 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.2% C 0.204 H 310.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8731B8
RGBrgb(135, 49, 184)
HSLhsl(278, 58%, 46%)
HSVhsv(278, 73%, 72%)
CMYKcmyk(26.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(39.26, 57.93, -55.22)
CIE-LCHlch(39.26, 80.03, 316.37°)
OKLaboklab(50.22% 0.1314 -0.1564)
OKLCHoklch(50.22% 0.204 310)
XYZxyz(19.7400, 10.8086, 46.3845)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731B8 #62B831
analogous
#4331B8 #8731B8 #B831A5
triadic
#8731B8 #B88731 #31B887
tetradic
#8731B8 #B84331 #62B831 #31A5B8
square
#8731B8 #B84331 #62B831 #31A5B8
split-complementary
#8731B8 #A5B831 #31B843
monochromatic
#401757 #642488 #8731B8 #A455D2 #BE85DE

Accessibility & contrast

On white

6.64
#8731B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8731B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731B8
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731B8#FFFFFF#000000##FFFFFF
##8731B81.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#125EB5
Tritanopia (blue-blind)
#805072
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8731b8;
/* rgb */ color: rgb(135, 49, 184);
/* oklch */ color: oklch(50.2% 0.204 310.0);
Tailwind
colors: {
  custom: {
    50: '#af71ce',
    500: '#8731b8',
    950: '#000000',
  },
}
SCSS
$custom: #8731b8;
$custom-light: #af71ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8731b8",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 278.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50217,
    "c": 0.20429,
    "h": 310
  },
  "luminance": 0.10808
}

Semantic roles & 50–950 ramp

primary
#8731B8
secondary
#98C87D
accent
#E1477F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8731B8

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

Preview Lab → · Contrast checker → · Palette generator →

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