#8A52DA#8A52DA

#8A52DA is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.0% C 0.199 H 298.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A52DA
RGBrgb(138, 82, 218)
HSLhsl(265, 65%, 59%)
HSVhsv(265, 62%, 85%)
CMYKcmyk(36.7%, 62.4%, 0%, 14.5%)
CIE-LABlab(47.62, 50.96, -61.36)
CIE-LCHlch(47.62, 79.76, 309.71°)
OKLaboklab(57.04% 0.0962 -0.1745)
OKLCHoklch(57.04% 0.199 298.9)
XYZxyz(26.1503, 16.4995, 68.1231)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52DA #A2DA52
analogous
#525EDA #8A52DA #CE52DA
triadic
#8A52DA #DA8A52 #52DA8A
tetradic
#8A52DA #DA525E #A2DA52 #52DACE
square
#8A52DA #DA525E #A2DA52 #52DACE
split-complementary
#8A52DA #DACE52 #5EDA52
monochromatic
#4F1F92 #6A2AC5 #8A52DA #AC84E5 #CEB7F0

Accessibility & contrast

On white

4.88
#8A52DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A52DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52DA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52DA#FFFFFF#000000##FFFFFF
##8A52DA1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#1270D7
Tritanopia (blue-blind)
#78708F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a52da;
/* rgb */ color: rgb(138, 82, 218);
/* oklch */ color: oklch(57.0% 0.199 298.9);
Tailwind
colors: {
  custom: {
    50: '#b185e6',
    500: '#8a52da',
    950: '#000000',
  },
}
SCSS
$custom: #8a52da;
$custom-light: #b185e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52da",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 264.706,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57044,
    "c": 0.19931,
    "h": 298.9
  },
  "luminance": 0.165
}

Semantic roles & 50–950 ramp

primary
#8A52DA
secondary
#C9DFA9
accent
#E840A3
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52DA

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

Preview Lab → · Contrast checker → · Palette generator →

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