#8A52C9#8A52C9

#8A52C9 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.9% C 0.180 H 302.7°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A52C9
RGBrgb(138, 82, 201)
HSLhsl(268, 52%, 55%)
HSVhsv(268, 59%, 79%)
CMYKcmyk(31.3%, 59.2%, 0%, 21.2%)
CIE-LABlab(46.52, 46.72, -53.40)
CIE-LCHlch(46.52, 70.96, 311.18°)
OKLaboklab(55.89% 0.097 -0.1511)
OKLCHoklch(55.89% 0.18 302.7)
XYZxyz(24.0387, 15.6549, 57.0023)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C9 #91C952
analogous
#5255C9 #8A52C9 #C552C9
triadic
#8A52C9 #C98A52 #52C98A
tetradic
#8A52C9 #C95255 #91C952 #52C9C5
square
#8A52C9 #C95255 #91C952 #52C9C5
split-complementary
#8A52C9 #C9C552 #55C952
monochromatic
#4E267A #6B35A9 #8A52C9 #AA81D8 #C9AFE6

Accessibility & contrast

On white

5.08
#8A52C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A52C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C9#FFFFFF#000000##FFFFFF
##8A52C91.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166DCD
Deuteranopia (green-blind)
#336EC6
Tritanopia (blue-blind)
#7E6A86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a52c9;
/* rgb */ color: rgb(138, 82, 201);
/* oklch */ color: oklch(55.9% 0.180 302.7);
Tailwind
colors: {
  custom: {
    50: '#b085da',
    500: '#8a52c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c9;
$custom-light: #b085da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c9",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 201
  },
  "hsl": {
    "h": 268.235,
    "s": 52.423,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55888,
    "c": 0.17957,
    "h": 302.7
  },
  "luminance": 0.15655
}

Semantic roles & 50–950 ramp

primary
#8A52C9
secondary
#BDD4A3
accent
#DC4C98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52C9

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

Preview Lab → · Contrast checker → · Palette generator →

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