#8A52C2#8A52C2

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

Color values

HEX#8A52C2
RGBrgb(138, 82, 194)
HSLhsl(270, 48%, 54%)
HSVhsv(270, 58%, 76%)
CMYKcmyk(28.9%, 57.7%, 0%, 23.9%)
CIE-LABlab(46.09, 45.01, -50.05)
CIE-LCHlch(46.09, 67.31, 311.97°)
OKLaboklab(55.43% 0.097 -0.1413)
OKLCHoklch(55.43% 0.171 304.5)
XYZxyz(23.2340, 15.3330, 52.7640)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C2 #8AC252
analogous
#5252C2 #8A52C2 #C252C2
triadic
#8A52C2 #C28A52 #52C28A
tetradic
#8A52C2 #C25252 #8AC252 #52C2C2
square
#8A52C2 #C25252 #8AC252 #52C2C2
split-complementary
#8A52C2 #C2C252 #52C252
monochromatic
#4D2872 #6B389F #8A52C2 #A97FD2 #C7ACE2

Accessibility & contrast

On white

5.16
#8A52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C2#FFFFFF#000000##FFFFFF
##8A52C21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#236CC6
Deuteranopia (green-blind)
#3A6DBF
Tritanopia (blue-blind)
#806882
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a52c2;
/* rgb */ color: rgb(138, 82, 194);
/* oklch */ color: oklch(55.4% 0.171 304.5);
Tailwind
colors: {
  custom: {
    50: '#af85d5',
    500: '#8a52c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c2;
$custom-light: #af85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c2",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55434,
    "c": 0.17138,
    "h": 304.5
  },
  "luminance": 0.15333
}

Semantic roles & 50–950 ramp

primary
#8A52C2
secondary
#B8D0A0
accent
#D75094
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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