#8A3C99#8A3C99

#8A3C99 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.8% C 0.160 H 320.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A3C99
RGBrgb(138, 60, 153)
HSLhsl(290, 44%, 42%)
HSVhsv(290, 61%, 60%)
CMYKcmyk(9.8%, 60.8%, 0%, 40%)
CIE-LABlab(39.47, 47.21, -36.36)
CIE-LCHlch(39.47, 59.59, 322.40°)
OKLaboklab(49.83% 0.1245 -0.1012)
OKLCHoklch(49.83% 0.16 320.9)
XYZxyz(17.8462, 10.9357, 31.3016)
Luminance0.1094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3C99 #4B993C
analogous
#5C3C99 #8A3C99 #993C7A
triadic
#8A3C99 #998A3C #3C998A
tetradic
#8A3C99 #995C3C #4B993C #3C7A99
square
#8A3C99 #995C3C #4B993C #3C7A99
split-complementary
#8A3C99 #7A993C #3C995C
monochromatic
#3B1A41 #622B6D #8A3C99 #AC56BD #C282CE

Accessibility & contrast

On white

6.59
#8A3C99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A3C99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3C99
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3C99#FFFFFF#000000##FFFFFF
##8A3C991.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579C
Deuteranopia (green-blind)
#456097
Tritanopia (blue-blind)
#8B4A65
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3c99;
/* rgb */ color: rgb(138, 60, 153);
/* oklch */ color: oklch(49.8% 0.160 320.9);
Tailwind
colors: {
  custom: {
    50: '#af76b7',
    500: '#8a3c99',
    950: '#000000',
  },
}
SCSS
$custom: #8a3c99;
$custom-light: #af76b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3c99",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 290.323,
    "s": 43.662,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.16045,
    "h": 320.9
  },
  "luminance": 0.10935
}

Semantic roles & 50–950 ramp

primary
#8A3C99
secondary
#83B879
accent
#D35469
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3C99

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

Preview Lab → · Contrast checker → · Palette generator →

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