#8A3BAA#8A3BAA

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

Color values

HEX#8A3BAA
RGBrgb(138, 59, 170)
HSLhsl(283, 48%, 45%)
HSVhsv(283, 65%, 67%)
CMYKcmyk(18.8%, 65.3%, 0%, 33.3%)
CIE-LABlab(40.30, 51.20, -45.22)
CIE-LCHlch(40.30, 68.31, 318.55°)
OKLaboklab(50.76% 0.1259 -0.1271)
OKLCHoklch(50.76% 0.179 314.7)
XYZxyz(19.2997, 11.4341, 39.2128)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BAA #5BAA3B
analogous
#533BAA #8A3BAA #AA3B92
triadic
#8A3BAA #AA8A3B #3BAA8A
tetradic
#8A3BAA #AA533B #5BAA3B #3B92AA
square
#8A3BAA #AA533B #5BAA3B #3B92AA
split-complementary
#8A3BAA #92AA3B #3BAA53
monochromatic
#401B4F #652B7D #8A3BAA #A85CC6 #C089D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3BAA#FFFFFF#000000##FFFFFF
##8A3BAA1.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)
#085AAD
Deuteranopia (green-blind)
#3861A7
Tritanopia (blue-blind)
#87506D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3baa;
/* rgb */ color: rgb(138, 59, 170);
/* oklch */ color: oklch(50.8% 0.179 314.7);
Tailwind
colors: {
  custom: {
    50: '#af76c4',
    500: '#8a3baa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3baa;
$custom-light: #af76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3baa",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 170
  },
  "hsl": {
    "h": 282.703,
    "s": 48.472,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50756,
    "c": 0.17886,
    "h": 314.7
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#8A3BAA
secondary
#93C080
accent
#D85077
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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