#8A3BA6#8A3BA6

#8A3BA6 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.5% C 0.175 H 316.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA6
RGBrgb(138, 59, 166)
HSLhsl(284, 48%, 44%)
HSVhsv(284, 64%, 65%)
CMYKcmyk(16.9%, 64.5%, 0%, 34.9%)
CIE-LABlab(40.06, 50.36, -43.23)
CIE-LCHlch(40.06, 66.37, 319.35°)
OKLaboklab(50.5% 0.126 -0.1212)
OKLCHoklch(50.5% 0.175 316.1)
XYZxyz(18.9271, 11.2851, 37.2502)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA6 #57A63B
analogous
#553BA6 #8A3BA6 #A63B8D
triadic
#8A3BA6 #A68A3B #3BA68A
tetradic
#8A3BA6 #A6553B #57A63B #3B8DA6
square
#8A3BA6 #A6553B #57A63B #3B8DA6
split-complementary
#8A3BA6 #8DA63B #3BA655
monochromatic
#3F1B4C #642B79 #8A3BA6 #A85AC4 #C087D4

Accessibility & contrast

On white

6.45
#8A3BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A3BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA6
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA6#FFFFFF#000000##FFFFFF
##8A3BA61.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AA9
Deuteranopia (green-blind)
#3B61A3
Tritanopia (blue-blind)
#884E6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba6;
/* rgb */ color: rgb(138, 59, 166);
/* oklch */ color: oklch(50.5% 0.175 316.1);
Tailwind
colors: {
  custom: {
    50: '#af76c1',
    500: '#8a3ba6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba6;
$custom-light: #af76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba6",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 284.299,
    "s": 47.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.505,
    "c": 0.17484,
    "h": 316.1
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

primary
#8A3BA6
secondary
#8FBF7E
accent
#D75174
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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