#8731CC#8731CC

#8731CC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.7% C 0.224 H 304.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8731CC
RGBrgb(135, 49, 204)
HSLhsl(273, 61%, 50%)
HSVhsv(273, 76%, 80%)
CMYKcmyk(33.8%, 76%, 0%, 20%)
CIE-LABlab(40.75, 62.33, -64.49)
CIE-LCHlch(40.75, 89.69, 314.03°)
OKLaboklab(51.74% 0.1275 -0.1837)
OKLCHoklch(51.74% 0.224 304.8)
XYZxyz(21.9866, 11.7073, 58.2165)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731CC #76CC31
analogous
#3931CC #8731CC #CC31C4
triadic
#8731CC #CC8731 #31CC87
tetradic
#8731CC #CC3931 #76CC31 #31C4CC
square
#8731CC #CC3931 #76CC31 #31C4CC
split-complementary
#8731CC #C4CC31 #31CC39
monochromatic
#461969 #66259B #8731CC #A461D9 #C092E5

Accessibility & contrast

On white

6.28
#8731CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8731CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731CC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731CC#FFFFFF#000000##FFFFFF
##8731CC1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#7A587D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8731cc;
/* rgb */ color: rgb(135, 49, 204);
/* oklch */ color: oklch(51.7% 0.224 304.8);
Tailwind
colors: {
  custom: {
    50: '#b072dd',
    500: '#8731cc',
    950: '#000000',
  },
}
SCSS
$custom: #8731cc;
$custom-light: #b072dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8731cc",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 273.29,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51736,
    "c": 0.22358,
    "h": 304.8
  },
  "luminance": 0.11707
}

Semantic roles & 50–950 ramp

primary
#8731CC
secondary
#A9D089
accent
#E4438B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8731CC

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

Preview Lab → · Contrast checker → · Palette generator →

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