#8A52C1#8A52C1

#8A52C1 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.4% C 0.170 H 304.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8A52C1
RGBrgb(138, 82, 193)
HSLhsl(270, 47%, 54%)
HSVhsv(270, 58%, 76%)
CMYKcmyk(28.5%, 57.5%, 0%, 24.3%)
CIE-LABlab(46.03, 44.77, -49.56)
CIE-LCHlch(46.03, 66.79, 312.09°)
OKLaboklab(55.37% 0.097 -0.1399)
OKLCHoklch(55.37% 0.17 304.7)
XYZxyz(23.1221, 15.2882, 52.1745)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C1 #89C152
analogous
#5352C1 #8A52C1 #C152C1
triadic
#8A52C1 #C18A52 #52C18A
tetradic
#8A52C1 #C15352 #89C152 #52C1C1
square
#8A52C1 #C15352 #89C152 #52C1C1
split-complementary
#8A52C1 #C1C152 #52C153
monochromatic
#4D2870 #6B389D #8A52C1 #A87FD1 #C7ACE1

Accessibility & contrast

On white

5.18
#8A52C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A52C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C1#FFFFFF#000000##FFFFFF
##8A52C11.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256BC5
Deuteranopia (green-blind)
#3B6DBE
Tritanopia (blue-blind)
#806882
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a52c1;
/* rgb */ color: rgb(138, 82, 193);
/* oklch */ color: oklch(55.4% 0.170 304.7);
Tailwind
colors: {
  custom: {
    50: '#af85d4',
    500: '#8a52c1',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c1;
$custom-light: #af85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c1",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 270.27,
    "s": 47.234,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.17021,
    "h": 304.7
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#8A52C1
secondary
#B7CFA0
accent
#D75193
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A52C1

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

Preview Lab → · Contrast checker → · Palette generator →

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