#8A3BAD#8A3BAD

#8A3BAD is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.182 H 313.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A3BAD
RGBrgb(138, 59, 173)
HSLhsl(282, 49%, 45%)
HSVhsv(282, 66%, 68%)
CMYKcmyk(20.2%, 65.9%, 0%, 32.2%)
CIE-LABlab(40.49, 51.84, -46.70)
CIE-LCHlch(40.49, 69.78, 317.98°)
OKLaboklab(50.95% 0.1258 -0.1314)
OKLCHoklch(50.95% 0.182 313.7)
XYZxyz(19.5867, 11.5489, 40.7245)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BAD #5EAD3B
analogous
#513BAD #8A3BAD #AD3B97
triadic
#8A3BAD #AD8A3B #3BAD8A
tetradic
#8A3BAD #AD513B #5EAD3B #3B97AD
square
#8A3BAD #AD513B #5EAD3B #3B97AD
split-complementary
#8A3BAD #97AD3B #3BAD51
monochromatic
#411C52 #662B7F #8A3BAD #A75DC8 #C08BD7

Accessibility & contrast

On white

6.35
#8A3BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A3BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BAD
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BAD#FFFFFF#000000##FFFFFF
##8A3BAD1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#3561AA
Tritanopia (blue-blind)
#87516F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3bad;
/* rgb */ color: rgb(138, 59, 173);
/* oklch */ color: oklch(51.0% 0.182 313.7);
Tailwind
colors: {
  custom: {
    50: '#b076c6',
    500: '#8a3bad',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bad;
$custom-light: #b076c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bad",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 281.579,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50952,
    "c": 0.18188,
    "h": 313.7
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#8A3BAD
secondary
#96C282
accent
#D94F79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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