#8A52D6#8A52D6

#8A52D6 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.195 H 299.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A52D6
RGBrgb(138, 82, 214)
HSLhsl(265, 62%, 58%)
HSVhsv(265, 62%, 84%)
CMYKcmyk(35.5%, 61.7%, 0%, 16.1%)
CIE-LABlab(47.36, 49.95, -59.51)
CIE-LCHlch(47.36, 77.70, 310.01°)
OKLaboklab(56.77% 0.0965 -0.1691)
OKLCHoklch(56.77% 0.195 299.7)
XYZxyz(25.6332, 16.2927, 65.3996)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D6 #9ED652
analogous
#525CD6 #8A52D6 #CC52D6
triadic
#8A52D6 #D68A52 #52D68A
tetradic
#8A52D6 #D6525C #9ED652 #52D6CC
square
#8A52D6 #D6525C #9ED652 #52D6CC
split-complementary
#8A52D6 #D6CC52 #5CD652
monochromatic
#4F218C #6A2DBE #8A52D6 #AB83E2 #CDB5ED

Accessibility & contrast

On white

4.93
#8A52D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A52D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D6
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D6#FFFFFF#000000##FFFFFF
##8A52D61.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#1E6FD3
Tritanopia (blue-blind)
#796F8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a52d6;
/* rgb */ color: rgb(138, 82, 214);
/* oklch */ color: oklch(56.8% 0.195 299.7);
Tailwind
colors: {
  custom: {
    50: '#b185e3',
    500: '#8a52d6',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d6;
$custom-light: #b185e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d6",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 265.455,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.19469,
    "h": 299.7
  },
  "luminance": 0.16293
}

Semantic roles & 50–950 ramp

primary
#8A52D6
secondary
#C6DCA8
accent
#E543A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52D6

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

Preview Lab → · Contrast checker → · Palette generator →

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