#8731C9#8731C9

#8731C9 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.221 H 305.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8731C9
RGBrgb(135, 49, 201)
HSLhsl(274, 61%, 49%)
HSVhsv(274, 76%, 79%)
CMYKcmyk(32.8%, 75.6%, 0%, 21.2%)
CIE-LABlab(40.52, 61.66, -63.12)
CIE-LCHlch(40.52, 88.24, 314.33°)
OKLaboklab(51.5% 0.1281 -0.1797)
OKLCHoklch(51.5% 0.221 305.5)
XYZxyz(21.6302, 11.5647, 56.3397)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C9 #73C931
analogous
#3B31C9 #8731C9 #C931BF
triadic
#8731C9 #C98731 #31C987
tetradic
#8731C9 #C93B31 #73C931 #31BFC9
square
#8731C9 #C93B31 #73C931 #31BFC9
split-complementary
#8731C9 #BFC931 #31C93B
monochromatic
#451967 #662598 #8731C9 #A45FD8 #C090E4

Accessibility & contrast

On white

6.34
#8731C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8731C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C9
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C9#FFFFFF#000000##FFFFFF
##8731C91.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#7B577C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8731c9;
/* rgb */ color: rgb(135, 49, 201);
/* oklch */ color: oklch(51.5% 0.221 305.5);
Tailwind
colors: {
  custom: {
    50: '#b072da',
    500: '#8731c9',
    950: '#000000',
  },
}
SCSS
$custom: #8731c9;
$custom-light: #b072da;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c9",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 273.947,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51502,
    "c": 0.22068,
    "h": 305.5
  },
  "luminance": 0.11565
}

Semantic roles & 50–950 ramp

primary
#8731C9
secondary
#A6CF87
accent
#E44489
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8731C9

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

Preview Lab → · Contrast checker → · Palette generator →

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