#8A3AAD#8A3AAD

#8A3AAD is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.8% C 0.183 H 313.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A3AAD
RGBrgb(138, 58, 173)
HSLhsl(282, 50%, 45%)
HSVhsv(282, 66%, 68%)
CMYKcmyk(20.2%, 66.5%, 0%, 32.2%)
CIE-LABlab(40.32, 52.30, -46.97)
CIE-LCHlch(40.32, 70.30, 318.07°)
OKLaboklab(50.83% 0.1269 -0.1322)
OKLCHoklch(50.83% 0.183 313.8)
XYZxyz(19.5358, 11.4471, 40.7075)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AAD #5DAD3A
analogous
#503AAD #8A3AAD #AD3A97
triadic
#8A3AAD #AD8A3A #3AAD8A
tetradic
#8A3AAD #AD503A #5DAD3A #3A97AD
square
#8A3AAD #AD503A #5DAD3A #3A97AD
split-complementary
#8A3AAD #97AD3A #3AAD50
monochromatic
#411B51 #652B7F #8A3AAD #A75CC8 #C08AD8

Accessibility & contrast

On white

6.38
#8A3AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A3AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AAD
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AAD#FFFFFF#000000##FFFFFF
##8A3AAD1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3aad;
/* rgb */ color: rgb(138, 58, 173);
/* oklch */ color: oklch(50.8% 0.183 313.8);
Tailwind
colors: {
  custom: {
    50: '#b076c6',
    500: '#8a3aad',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aad;
$custom-light: #b076c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aad",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 173
  },
  "hsl": {
    "h": 281.739,
    "s": 49.784,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50832,
    "c": 0.18324,
    "h": 313.8
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#8A3AAD
secondary
#95C281
accent
#D94E79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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