#8A3BA5#8A3BA5

#8A3BA5 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.4% C 0.174 H 316.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA5
RGBrgb(138, 59, 165)
HSLhsl(285, 47%, 44%)
HSVhsv(285, 64%, 65%)
CMYKcmyk(16.4%, 64.2%, 0%, 35.3%)
CIE-LABlab(40.00, 50.15, -42.73)
CIE-LCHlch(40.00, 65.88, 319.57°)
OKLaboklab(50.44% 0.126 -0.1198)
OKLCHoklch(50.44% 0.174 316.5)
XYZxyz(18.8357, 11.2485, 36.7690)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA5 #56A53B
analogous
#553BA5 #8A3BA5 #A53B8B
triadic
#8A3BA5 #A58A3B #3BA58A
tetradic
#8A3BA5 #A5553B #56A53B #3B8BA5
square
#8A3BA5 #A5553B #56A53B #3B8BA5
split-complementary
#8A3BA5 #8BA53B #3BA555
monochromatic
#3F1B4B #642B78 #8A3BA5 #A959C4 #C086D4

Accessibility & contrast

On white

6.46
#8A3BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA5
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA5#FFFFFF#000000##FFFFFF
##8A3BA51.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1559A8
Deuteranopia (green-blind)
#3C61A2
Tritanopia (blue-blind)
#894E6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba5;
/* rgb */ color: rgb(138, 59, 165);
/* oklch */ color: oklch(50.4% 0.174 316.5);
Tailwind
colors: {
  custom: {
    50: '#af76c0',
    500: '#8a3ba5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba5;
$custom-light: #af76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba5",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 284.717,
    "s": 47.321,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50436,
    "c": 0.17384,
    "h": 316.5
  },
  "luminance": 0.11248
}

Semantic roles & 50–950 ramp

primary
#8A3BA5
secondary
#8EBE7E
accent
#D75173
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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