#8A3C97#8A3C97

#8A3C97 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.7% C 0.158 H 321.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A3C97
RGBrgb(138, 60, 151)
HSLhsl(291, 43%, 41%)
HSVhsv(291, 60%, 59%)
CMYKcmyk(8.6%, 60.3%, 0%, 40.8%)
CIE-LABlab(39.36, 46.81, -35.32)
CIE-LCHlch(39.36, 58.64, 322.96°)
OKLaboklab(49.71% 0.1244 -0.0982)
OKLCHoklch(49.71% 0.158 321.7)
XYZxyz(17.6824, 10.8702, 30.4389)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3C97 #49973C
analogous
#5D3C97 #8A3C97 #973C77
triadic
#8A3C97 #978A3C #3C978A
tetradic
#8A3C97 #975D3C #49973C #3C7797
square
#8A3C97 #975D3C #49973C #3C7797
split-complementary
#8A3C97 #77973C #3C975D
monochromatic
#3A193F #622B6B #8A3C97 #AD55BB #C281CD

Accessibility & contrast

On white

6.62
#8A3C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A3C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3C97
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3C97#FFFFFF#000000##FFFFFF
##8A3C971.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#466095
Tritanopia (blue-blind)
#8C4A64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3c97;
/* rgb */ color: rgb(138, 60, 151);
/* oklch */ color: oklch(49.7% 0.158 321.7);
Tailwind
colors: {
  custom: {
    50: '#af76b6',
    500: '#8a3c97',
    950: '#000000',
  },
}
SCSS
$custom: #8a3c97;
$custom-light: #af76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3c97",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 291.429,
    "s": 43.128,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49714,
    "c": 0.15848,
    "h": 321.7
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#8A3C97
secondary
#81B778
accent
#D35567
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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