#8A3C9D#8A3C9D

#8A3C9D is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.1% C 0.164 H 319.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A3C9D
RGBrgb(138, 60, 157)
HSLhsl(288, 45%, 43%)
HSVhsv(288, 62%, 62%)
CMYKcmyk(12.1%, 61.8%, 0%, 38.4%)
CIE-LABlab(39.70, 48.02, -38.41)
CIE-LCHlch(39.70, 61.49, 321.35°)
OKLaboklab(50.07% 0.1247 -0.1071)
OKLCHoklch(50.07% 0.164 319.3)
XYZxyz(18.1821, 11.0701, 33.0708)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3C9D #4F9D3C
analogous
#593C9D #8A3C9D #9D3C80
triadic
#8A3C9D #9D8A3C #3C9D8A
tetradic
#8A3C9D #9D593C #4F9D3C #3C809D
square
#8A3C9D #9D593C #4F9D3C #3C809D
split-complementary
#8A3C9D #809D3C #3C9D59
monochromatic
#3C1A44 #632B71 #8A3C9D #AB57BF #C184D0

Accessibility & contrast

On white

6.53
#8A3C9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A3C9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3C9D
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3C9D#FFFFFF#000000##FFFFFF
##8A3C9D1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#43609B
Tritanopia (blue-blind)
#8A4C67
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3c9d;
/* rgb */ color: rgb(138, 60, 157);
/* oklch */ color: oklch(50.1% 0.164 319.3);
Tailwind
colors: {
  custom: {
    50: '#af77ba',
    500: '#8a3c9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3c9d;
$custom-light: #af77ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3c9d",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 288.247,
    "s": 44.7,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50069,
    "c": 0.1644,
    "h": 319.3
  },
  "luminance": 0.11069
}

Semantic roles & 50–950 ramp

primary
#8A3C9D
secondary
#87BA7B
accent
#D4536D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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