#8C31BA#8C31BA

#8C31BA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.208 H 311.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8C31BA
RGBrgb(140, 49, 186)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 74%, 73%)
CMYKcmyk(24.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(40.11, 59.33, -54.98)
CIE-LCHlch(40.11, 80.89, 317.18°)
OKLaboklab(51.02% 0.1377 -0.1556)
OKLCHoklch(51.02% 0.208 311.5)
XYZxyz(20.7748, 11.3178, 47.5350)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31BA #5FBA31
analogous
#4731BA #8C31BA #BA31A3
triadic
#8C31BA #BA8C31 #31BA8C
tetradic
#8C31BA #BA4731 #5FBA31 #31A3BA
square
#8C31BA #BA4731 #5FBA31 #31A3BA
split-complementary
#8C31BA #A3BA31 #31BA47
monochromatic
#431759 #68248A #8C31BA #A956D2 #C186DF

Accessibility & contrast

On white

6.44
#8C31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8C31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31BA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31BA#FFFFFF#000000##FFFFFF
##8C31BA1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#1B60B7
Tritanopia (blue-blind)
#865073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c31ba;
/* rgb */ color: rgb(140, 49, 186);
/* oklch */ color: oklch(51.0% 0.208 311.5);
Tailwind
colors: {
  custom: {
    50: '#b272d0',
    500: '#8c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #8c31ba;
$custom-light: #b272d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31ba",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 279.854,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51015,
    "c": 0.20772,
    "h": 311.5
  },
  "luminance": 0.11317
}

Semantic roles & 50–950 ramp

primary
#8C31BA
secondary
#97C97E
accent
#E2467A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

#8C31BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva