#8A52D1#8A52D1

#8A52D1 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.189 H 300.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A52D1
RGBrgb(138, 82, 209)
HSLhsl(266, 58%, 57%)
HSVhsv(266, 61%, 82%)
CMYKcmyk(34%, 60.8%, 0%, 18%)
CIE-LABlab(47.03, 48.70, -57.18)
CIE-LCHlch(47.03, 75.11, 310.42°)
OKLaboklab(56.42% 0.0967 -0.1622)
OKLCHoklch(56.42% 0.189 300.8)
XYZxyz(25.0044, 16.0412, 62.0882)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D1 #99D152
analogous
#5259D1 #8A52D1 #CA52D1
triadic
#8A52D1 #D18A52 #52D18A
tetradic
#8A52D1 #D15259 #99D152 #52D1CA
square
#8A52D1 #D15259 #99D152 #52D1CA
split-complementary
#8A52D1 #D1CA52 #59D152
monochromatic
#4F2385 #6B30B6 #8A52D1 #AB82DE #CBB3EB

Accessibility & contrast

On white

4.99
#8A52D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A52D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D1#FFFFFF#000000##FFFFFF
##8A52D11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD5
Deuteranopia (green-blind)
#276FCE
Tritanopia (blue-blind)
#7B6D8A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52d1;
/* rgb */ color: rgb(138, 82, 209);
/* oklch */ color: oklch(56.4% 0.189 300.8);
Tailwind
colors: {
  custom: {
    50: '#b185e0',
    500: '#8a52d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d1;
$custom-light: #b185e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d1",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 266.457,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56423,
    "c": 0.18889,
    "h": 300.8
  },
  "luminance": 0.16041
}

Semantic roles & 50–950 ramp

primary
#8A52D1
secondary
#C2D9A6
accent
#E1479D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52D1

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

Preview Lab → · Contrast checker → · Palette generator →

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