#8A4AAD#8A4AAD

#8A4AAD is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.9% C 0.160 H 312.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A4AAD
RGBrgb(138, 74, 173)
HSLhsl(279, 40%, 48%)
HSVhsv(279, 57%, 68%)
CMYKcmyk(20.2%, 57.2%, 0%, 32.2%)
CIE-LABlab(43.24, 44.37, -42.31)
CIE-LCHlch(43.24, 61.31, 316.36°)
OKLaboklab(52.95% 0.1069 -0.1186)
OKLCHoklch(52.95% 0.16 312)
XYZxyz(20.4715, 13.3184, 41.0194)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AAD #6DAD4A
analogous
#584AAD #8A4AAD #AD4A9E
triadic
#8A4AAD #AD8A4A #4AAD8A
tetradic
#8A4AAD #AD584A #6DAD4A #4A9EAD
square
#8A4AAD #AD584A #6DAD4A #4A9EAD
split-complementary
#8A4AAD #9EAD4A #4AAD58
monochromatic
#462557 #683882 #8A4AAD #A672C3 #C19DD5

Accessibility & contrast

On white

5.73
#8A4AAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A4AAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AAD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AAD#FFFFFF#000000##FFFFFF
##8A4AAD1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C63B0
Deuteranopia (green-blind)
#4468AB
Tritanopia (blue-blind)
#865B74
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4aad;
/* rgb */ color: rgb(138, 74, 173);
/* oklch */ color: oklch(52.9% 0.160 312.0);
Tailwind
colors: {
  custom: {
    50: '#af7fc6',
    500: '#8a4aad',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aad;
$custom-light: #af7fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aad",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 173
  },
  "hsl": {
    "h": 278.788,
    "s": 40.081,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52949,
    "c": 0.15968,
    "h": 312
  },
  "luminance": 0.13318
}

Semantic roles & 50–950 ramp

primary
#8A4AAD
secondary
#A2C191
accent
#D05882
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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