#8731B7#8731B7

#8731B7 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.203 H 310.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8731B7
RGBrgb(135, 49, 183)
HSLhsl(279, 58%, 45%)
HSVhsv(279, 73%, 72%)
CMYKcmyk(26.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(39.19, 57.71, -54.74)
CIE-LCHlch(39.19, 79.55, 316.51°)
OKLaboklab(50.14% 0.1315 -0.155)
OKLCHoklch(50.14% 0.203 310.3)
XYZxyz(19.6356, 10.7669, 45.8344)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731B7 #61B731
analogous
#4431B7 #8731B7 #B731A4
triadic
#8731B7 #B78731 #31B787
tetradic
#8731B7 #B74431 #61B731 #31A4B7
square
#8731B7 #B74431 #61B731 #31A4B7
split-complementary
#8731B7 #A4B731 #31B744
monochromatic
#401756 #632487 #8731B7 #A454D1 #BE84DE

Accessibility & contrast

On white

6.66
#8731B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8731B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731B7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731B7#FFFFFF#000000##FFFFFF
##8731B71.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#155EB4
Tritanopia (blue-blind)
#805071
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8731b7;
/* rgb */ color: rgb(135, 49, 183);
/* oklch */ color: oklch(50.1% 0.203 310.3);
Tailwind
colors: {
  custom: {
    50: '#ae71cd',
    500: '#8731b7',
    950: '#000000',
  },
}
SCSS
$custom: #8731b7;
$custom-light: #ae71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8731b7",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 278.507,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50144,
    "c": 0.20332,
    "h": 310.3
  },
  "luminance": 0.10766
}

Semantic roles & 50–950 ramp

primary
#8731B7
secondary
#97C87C
accent
#E1477E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8731B7

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

Preview Lab → · Contrast checker → · Palette generator →

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