#8C3ABA#8C3ABA

#8C3ABA is a mid, vivid violet. Relative luminance 0.121; OKLCH L 52.0% C 0.197 H 310.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8C3ABA
RGBrgb(140, 58, 186)
HSLhsl(278, 52%, 48%)
HSVhsv(278, 69%, 73%)
CMYKcmyk(24.7%, 68.8%, 0%, 27.1%)
CIE-LABlab(41.45, 55.55, -52.82)
CIE-LCHlch(41.45, 76.65, 316.45°)
OKLaboklab(51.97% 0.1285 -0.1493)
OKLCHoklch(51.97% 0.197 310.7)
XYZxyz(21.1895, 12.1472, 47.6733)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C3ABA #68BA3A
analogous
#4C3ABA #8C3ABA #BA3AA8
triadic
#8C3ABA #BA8C3A #3ABA8C
tetradic
#8C3ABA #BA4C3A #68BA3A #3AA8BA
square
#8C3ABA #BA4C3A #68BA3A #3AA8BA
split-complementary
#8C3ABA #A8BA3A #3ABA4C
monochromatic
#461D5D #692B8B #8C3ABA #A863CE #C292DD

Accessibility & contrast

On white

6.12
#8C3ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8C3ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C3ABA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C3ABA#FFFFFF#000000##FFFFFF
##8C3ABA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#865576
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8c3aba;
/* rgb */ color: rgb(140, 58, 186);
/* oklch */ color: oklch(52.0% 0.197 310.7);
Tailwind
colors: {
  custom: {
    50: '#b277cf',
    500: '#8c3aba',
    950: '#000000',
  },
}
SCSS
$custom: #8c3aba;
$custom-light: #b277cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c3aba",
  "rgb": {
    "r": 140,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 278.438,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.19695,
    "h": 310.7
  },
  "luminance": 0.12147
}

Semantic roles & 50–950 ramp

primary
#8C3ABA
secondary
#9FC888
accent
#DC4C80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8C3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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