#8A52CC#8A52CC

#8A52CC is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.183 H 302.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A52CC
RGBrgb(138, 82, 204)
HSLhsl(268, 54%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32.4%, 59.8%, 0%, 20%)
CIE-LABlab(46.71, 47.46, -54.82)
CIE-LCHlch(46.71, 72.52, 310.88°)
OKLaboklab(56.09% 0.0969 -0.1553)
OKLCHoklch(56.09% 0.183 302)
XYZxyz(24.3951, 15.7974, 58.8790)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CC #94CC52
analogous
#5257CC #8A52CC #C752CC
triadic
#8A52CC #CC8A52 #52CC8A
tetradic
#8A52CC #CC5257 #94CC52 #52CCC7
square
#8A52CC #CC5257 #94CC52 #52CCC7
split-complementary
#8A52CC #CCC752 #57CC52
monochromatic
#4E257E #6B33AE #8A52CC #AA81DA #CAB1E8

Accessibility & contrast

On white

5.05
#8A52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CC#FFFFFF#000000##FFFFFF
##8A52CC1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C6ED0
Deuteranopia (green-blind)
#2F6EC9
Tritanopia (blue-blind)
#7D6B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52cc;
/* rgb */ color: rgb(138, 82, 204);
/* oklch */ color: oklch(56.1% 0.183 302.0);
Tailwind
colors: {
  custom: {
    50: '#b085dc',
    500: '#8a52cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a52cc;
$custom-light: #b085dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52cc",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 267.541,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56087,
    "c": 0.18308,
    "h": 302
  },
  "luminance": 0.15797
}

Semantic roles & 50–950 ramp

primary
#8A52CC
secondary
#BFD6A4
accent
#DE4A9A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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