#8A52AE#8A52AE

#8A52AE is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.148 H 310.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A52AE
RGBrgb(138, 82, 174)
HSLhsl(277, 36%, 50%)
HSVhsv(277, 53%, 68%)
CMYKcmyk(20.7%, 52.9%, 0%, 31.8%)
CIE-LABlab(44.93, 40.28, -40.21)
CIE-LCHlch(44.93, 56.92, 315.05°)
OKLaboklab(54.21% 0.096 -0.1125)
OKLCHoklch(54.21% 0.148 310.5)
XYZxyz(21.1371, 14.4942, 41.7204)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52AE #76AE52
analogous
#5C52AE #8A52AE #AE52A4
triadic
#8A52AE #AE8A52 #52AE8A
tetradic
#8A52AE #AE5C52 #76AE52 #52A4AE
square
#8A52AE #AE5C52 #76AE52 #52A4AE
split-complementary
#8A52AE #A4AE52 #52AE5C
monochromatic
#482B5B #693E85 #8A52AE #A67CC2 #C2A5D5

Accessibility & contrast

On white

5.39
#8A52AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8A52AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52AE
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52AE#FFFFFF#000000##FFFFFF
##8A52AE1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B1
Deuteranopia (green-blind)
#4B6BAC
Tritanopia (blue-blind)
#866278
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a52ae;
/* rgb */ color: rgb(138, 82, 174);
/* oklch */ color: oklch(54.2% 0.148 310.5);
Tailwind
colors: {
  custom: {
    50: '#ae84c6',
    500: '#8a52ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ae;
$custom-light: #ae84c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ae",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 174
  },
  "hsl": {
    "h": 276.522,
    "s": 36.22,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54213,
    "c": 0.14793,
    "h": 310.5
  },
  "luminance": 0.14494
}

Semantic roles & 50–950 ramp

primary
#8A52AE
secondary
#A9C299
accent
#CC5C88
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A52AE

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

Preview Lab → · Contrast checker → · Palette generator →

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