#8A3BA3#8A3BA3

#8A3BA3 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.3% C 0.172 H 317.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA3
RGBrgb(138, 59, 163)
HSLhsl(286, 47%, 44%)
HSVhsv(286, 64%, 64%)
CMYKcmyk(15.3%, 63.8%, 0%, 36.1%)
CIE-LABlab(39.88, 49.73, -41.73)
CIE-LCHlch(39.88, 64.92, 320.00°)
OKLaboklab(50.31% 0.126 -0.1168)
OKLCHoklch(50.31% 0.172 317.2)
XYZxyz(18.6551, 11.1763, 35.8178)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA3 #54A33B
analogous
#563BA3 #8A3BA3 #A33B88
triadic
#8A3BA3 #A38A3B #3BA38A
tetradic
#8A3BA3 #A3563B #54A33B #3B88A3
square
#8A3BA3 #A3563B #54A33B #3B88A3
split-complementary
#8A3BA3 #88A33B #3BA356
monochromatic
#3E1A49 #642B76 #8A3BA3 #A958C3 #C085D3

Accessibility & contrast

On white

6.49
#8A3BA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3BA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA3
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA3#FFFFFF#000000##FFFFFF
##8A3BA31.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1959A6
Deuteranopia (green-blind)
#3E60A0
Tritanopia (blue-blind)
#894D6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba3;
/* rgb */ color: rgb(138, 59, 163);
/* oklch */ color: oklch(50.3% 0.172 317.2);
Tailwind
colors: {
  custom: {
    50: '#af76bf',
    500: '#8a3ba3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba3;
$custom-light: #af76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba3",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 163
  },
  "hsl": {
    "h": 285.577,
    "s": 46.847,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50311,
    "c": 0.17184,
    "h": 317.2
  },
  "luminance": 0.11176
}

Semantic roles & 50–950 ramp

primary
#8A3BA3
secondary
#8CBD7D
accent
#D65171
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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