#8A52D2#8A52D2

#8A52D2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.5% C 0.190 H 300.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A52D2
RGBrgb(138, 82, 210)
HSLhsl(266, 59%, 57%)
HSVhsv(266, 61%, 82%)
CMYKcmyk(34.3%, 61%, 0%, 17.6%)
CIE-LABlab(47.09, 48.95, -57.65)
CIE-LCHlch(47.09, 75.63, 310.34°)
OKLaboklab(56.49% 0.0967 -0.1636)
OKLCHoklch(56.49% 0.19 300.6)
XYZxyz(25.1286, 16.0908, 62.7422)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D2 #9AD252
analogous
#525AD2 #8A52D2 #CA52D2
triadic
#8A52D2 #D28A52 #52D28A
tetradic
#8A52D2 #D2525A #9AD252 #52D2CA
square
#8A52D2 #D2525A #9AD252 #52D2CA
split-complementary
#8A52D2 #D2CA52 #5AD252
monochromatic
#4F2387 #6B30B7 #8A52D2 #AB83DF #CCB3EB

Accessibility & contrast

On white

4.98
#8A52D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8A52D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D2#FFFFFF#000000##FFFFFF
##8A52D21.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#7B6D8A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a52d2;
/* rgb */ color: rgb(138, 82, 210);
/* oklch */ color: oklch(56.5% 0.190 300.6);
Tailwind
colors: {
  custom: {
    50: '#b185e0',
    500: '#8a52d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d2;
$custom-light: #b185e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d2",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 266.25,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.19005,
    "h": 300.6
  },
  "luminance": 0.16091
}

Semantic roles & 50–950 ramp

primary
#8A52D2
secondary
#C3DAA6
accent
#E2469E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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