#8A3CA7#8A3CA7

#8A3CA7 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.7% C 0.174 H 315.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8A3CA7
RGBrgb(138, 60, 167)
HSLhsl(284, 47%, 45%)
HSVhsv(284, 64%, 65%)
CMYKcmyk(17.4%, 64.1%, 0%, 34.5%)
CIE-LABlab(40.29, 50.10, -43.46)
CIE-LCHlch(40.29, 66.32, 319.06°)
OKLaboklab(50.69% 0.1248 -0.1219)
OKLCHoklch(50.69% 0.174 315.7)
XYZxyz(19.0711, 11.4257, 37.7525)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CA7 #59A73C
analogous
#543CA7 #8A3CA7 #A73C8F
triadic
#8A3CA7 #A78A3C #3CA78A
tetradic
#8A3CA7 #A7543C #59A73C #3C8FA7
square
#8A3CA7 #A7543C #59A73C #3C8FA7
split-complementary
#8A3CA7 #8FA73C #3CA754
monochromatic
#401C4D #652C7A #8A3CA7 #A85CC4 #C089D5

Accessibility & contrast

On white

6.39
#8A3CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A3CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CA7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CA7#FFFFFF#000000##FFFFFF
##8A3CA71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AAA
Deuteranopia (green-blind)
#3B61A4
Tritanopia (blue-blind)
#884F6C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ca7;
/* rgb */ color: rgb(138, 60, 167);
/* oklch */ color: oklch(50.7% 0.174 315.7);
Tailwind
colors: {
  custom: {
    50: '#af77c2',
    500: '#8a3ca7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ca7;
$custom-light: #af77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ca7",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 283.738,
    "s": 47.137,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50687,
    "c": 0.17442,
    "h": 315.7
  },
  "luminance": 0.11425
}

Semantic roles & 50–950 ramp

primary
#8A3CA7
secondary
#91BF80
accent
#D75175
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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