#8731BC#8731BC

#8731BC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.208 H 308.9°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8731BC
RGBrgb(135, 49, 188)
HSLhsl(277, 59%, 46%)
HSVhsv(277, 74%, 74%)
CMYKcmyk(28.2%, 73.9%, 0%, 26.3%)
CIE-LABlab(39.54, 58.80, -57.11)
CIE-LCHlch(39.54, 81.96, 315.84°)
OKLaboklab(50.51% 0.1307 -0.162)
OKLCHoklch(50.51% 0.208 308.9)
XYZxyz(20.1652, 10.9787, 48.6240)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731BC #66BC31
analogous
#4131BC #8731BC #BC31AC
triadic
#8731BC #BC8731 #31BC87
tetradic
#8731BC #BC4131 #66BC31 #31ACBC
square
#8731BC #BC4131 #66BC31 #31ACBC
split-complementary
#8731BC #ACBC31 #31BC41
monochromatic
#41185B #64248B #8731BC #A457D3 #BE88E0

Accessibility & contrast

On white

6.57
#8731BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8731BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731BC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731BC#FFFFFF#000000##FFFFFF
##8731BC1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#035EB9
Tritanopia (blue-blind)
#7F5274
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8731bc;
/* rgb */ color: rgb(135, 49, 188);
/* oklch */ color: oklch(50.5% 0.208 308.9);
Tailwind
colors: {
  custom: {
    50: '#af72d1',
    500: '#8731bc',
    950: '#000000',
  },
}
SCSS
$custom: #8731bc;
$custom-light: #af72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8731bc",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 277.122,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50512,
    "c": 0.20813,
    "h": 308.9
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#8731BC
secondary
#9CCA7F
accent
#E24681
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8731BC

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

Preview Lab → · Contrast checker → · Palette generator →

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