#8A3BAC#8A3BAC

#8A3BAC is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.9% C 0.181 H 314.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A3BAC
RGBrgb(138, 59, 172)
HSLhsl(282, 49%, 45%)
HSVhsv(282, 66%, 67%)
CMYKcmyk(19.8%, 65.7%, 0%, 32.5%)
CIE-LABlab(40.43, 51.63, -46.21)
CIE-LCHlch(40.43, 69.29, 318.17°)
OKLaboklab(50.89% 0.1258 -0.1299)
OKLCHoklch(50.89% 0.181 314.1)
XYZxyz(19.4903, 11.5104, 40.2168)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BAC #5DAC3B
analogous
#513BAC #8A3BAC #AC3B95
triadic
#8A3BAC #AC8A3B #3BAC8A
tetradic
#8A3BAC #AC513B #5DAC3B #3B95AC
square
#8A3BAC #AC513B #5DAC3B #3B95AC
split-complementary
#8A3BAC #95AC3B #3BAC51
monochromatic
#411C51 #652B7E #8A3BAC #A75DC7 #C08AD7

Accessibility & contrast

On white

6.36
#8A3BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A3BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BAC
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BAC#FFFFFF#000000##FFFFFF
##8A3BAC1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015BAF
Deuteranopia (green-blind)
#3661A9
Tritanopia (blue-blind)
#87516E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3bac;
/* rgb */ color: rgb(138, 59, 172);
/* oklch */ color: oklch(50.9% 0.181 314.1);
Tailwind
colors: {
  custom: {
    50: '#af76c5',
    500: '#8a3bac',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bac;
$custom-light: #af76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bac",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 172
  },
  "hsl": {
    "h": 281.947,
    "s": 48.918,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50886,
    "c": 0.18087,
    "h": 314.1
  },
  "luminance": 0.1151
}

Semantic roles & 50–950 ramp

primary
#8A3BAC
secondary
#95C181
accent
#D84F79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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