#8A51AA#8A51AA

#8A51AA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.8% C 0.145 H 312.0°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A51AA
RGBrgb(138, 81, 170)
HSLhsl(278, 35%, 49%)
HSVhsv(278, 52%, 67%)
CMYKcmyk(18.8%, 52.4%, 0%, 33.3%)
CIE-LABlab(44.51, 39.92, -38.53)
CIE-LCHlch(44.51, 55.48, 316.02°)
OKLaboklab(53.83% 0.0971 -0.1076)
OKLCHoklch(53.83% 0.145 312)
XYZxyz(20.6781, 14.1909, 39.6722)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51AA #71AA51
analogous
#5E51AA #8A51AA #AA519E
triadic
#8A51AA #AA8A51 #51AA8A
tetradic
#8A51AA #AA5E51 #71AA51 #519EAA
square
#8A51AA #AA5E51 #71AA51 #519EAA
split-complementary
#8A51AA #9EAA51 #51AA5E
monochromatic
#472A57 #683D81 #8A51AA #A679BF #C2A2D3

Accessibility & contrast

On white

5.47
#8A51AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A51AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51AA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51AA#FFFFFF#000000##FFFFFF
##8A51AA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#4C6BA8
Tritanopia (blue-blind)
#876076
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a51aa;
/* rgb */ color: rgb(138, 81, 170);
/* oklch */ color: oklch(53.8% 0.145 312.0);
Tailwind
colors: {
  custom: {
    50: '#ae84c4',
    500: '#8a51aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a51aa;
$custom-light: #ae84c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51aa",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 278.427,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53826,
    "c": 0.14493,
    "h": 312
  },
  "luminance": 0.1419
}

Semantic roles & 50–950 ramp

primary
#8A51AA
secondary
#A6C097
accent
#CB5C84
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B12
muted
#807C81

Preview Lab

Preview with #8A51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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