#8A52BA#8A52BA

#8A52BA is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.162 H 306.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A52BA
RGBrgb(138, 82, 186)
HSLhsl(272, 43%, 53%)
HSVhsv(272, 56%, 73%)
CMYKcmyk(25.8%, 55.9%, 0%, 27.1%)
CIE-LABlab(45.61, 43.09, -46.16)
CIE-LCHlch(45.61, 63.15, 313.03°)
OKLaboklab(54.93% 0.0968 -0.1299)
OKLCHoklch(54.93% 0.162 306.7)
XYZxyz(22.3596, 14.9833, 48.1590)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BA #82BA52
analogous
#5652BA #8A52BA #BA52B6
triadic
#8A52BA #BA8A52 #52BA8A
tetradic
#8A52BA #BA5652 #82BA52 #52B6BA
square
#8A52BA #BA5652 #82BA52 #52B6BA
split-complementary
#8A52BA #B6BA52 #52BA56
monochromatic
#4B2A68 #6B3B94 #8A52BA #A87ECB #C5AADD

Accessibility & contrast

On white

5.25
#8A52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52BA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BA#FFFFFF#000000##FFFFFF
##8A52BA1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABD
Deuteranopia (green-blind)
#426CB7
Tritanopia (blue-blind)
#82657E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a52ba;
/* rgb */ color: rgb(138, 82, 186);
/* oklch */ color: oklch(54.9% 0.162 306.7);
Tailwind
colors: {
  custom: {
    50: '#af85cf',
    500: '#8a52ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ba;
$custom-light: #af85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ba",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 272.308,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54932,
    "c": 0.162,
    "h": 306.7
  },
  "luminance": 0.14983
}

Semantic roles & 50–950 ramp

primary
#8A52BA
secondary
#B2CA9D
accent
#D3558F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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