#8A52AA#8A52AA

#8A52AA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.0% C 0.143 H 311.9°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A52AA
RGBrgb(138, 82, 170)
HSLhsl(278, 35%, 49%)
HSVhsv(278, 52%, 67%)
CMYKcmyk(18.8%, 51.8%, 0%, 33.3%)
CIE-LABlab(44.72, 39.37, -38.19)
CIE-LCHlch(44.72, 54.85, 315.87°)
OKLaboklab(53.98% 0.0957 -0.1067)
OKLCHoklch(53.98% 0.143 311.9)
XYZxyz(20.7529, 14.3406, 39.6972)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52AA #72AA52
analogous
#5E52AA #8A52AA #AA529E
triadic
#8A52AA #AA8A52 #52AA8A
tetradic
#8A52AA #AA5E52 #72AA52 #529EAA
square
#8A52AA #AA5E52 #72AA52 #529EAA
split-complementary
#8A52AA #9EAA52 #52AA5E
monochromatic
#472A57 #683E81 #8A52AA #A67ABF #C2A4D3

Accessibility & contrast

On white

5.43
#8A52AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A52AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52AA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52AA#FFFFFF#000000##FFFFFF
##8A52AA1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#4D6BA8
Tritanopia (blue-blind)
#876076
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a52aa;
/* rgb */ color: rgb(138, 82, 170);
/* oklch */ color: oklch(54.0% 0.143 311.9);
Tailwind
colors: {
  custom: {
    50: '#ae84c4',
    500: '#8a52aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a52aa;
$custom-light: #ae84c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52aa",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 278.182,
    "s": 34.921,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.14327,
    "h": 311.9
  },
  "luminance": 0.1434
}

Semantic roles & 50–950 ramp

primary
#8A52AA
secondary
#A6C098
accent
#CB5D85
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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