#8731BF#8731BF

#8731BF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.211 H 308.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8731BF
RGBrgb(135, 49, 191)
HSLhsl(276, 59%, 47%)
HSVhsv(276, 74%, 75%)
CMYKcmyk(29.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(39.76, 59.45, -58.51)
CIE-LCHlch(39.76, 83.41, 315.46°)
OKLaboklab(50.74% 0.1302 -0.1661)
OKLCHoklch(50.74% 0.211 308.1)
XYZxyz(20.4920, 11.1094, 50.3449)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731BF #69BF31
analogous
#4031BF #8731BF #BF31B0
triadic
#8731BF #BF8731 #31BF87
tetradic
#8731BF #BF4031 #69BF31 #31B0BF
square
#8731BF #BF4031 #69BF31 #31B0BF
split-complementary
#8731BF #B0BF31 #31BF40
monochromatic
#42185E #65258E #8731BF #A459D4 #BE8AE1

Accessibility & contrast

On white

6.52
#8731BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8731BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731BF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731BF#FFFFFF#000000##FFFFFF
##8731BF1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#7E5376
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8731bf;
/* rgb */ color: rgb(135, 49, 191);
/* oklch */ color: oklch(50.7% 0.211 308.1);
Tailwind
colors: {
  custom: {
    50: '#af72d3',
    500: '#8731bf',
    950: '#000000',
  },
}
SCSS
$custom: #8731bf;
$custom-light: #af72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8731bf",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 276.338,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50737,
    "c": 0.21103,
    "h": 308.1
  },
  "luminance": 0.11109
}

Semantic roles & 50–950 ramp

primary
#8731BF
secondary
#9ECB81
accent
#E24583
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8731BF

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

Preview Lab → · Contrast checker → · Palette generator →

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