#8A52CA#8A52CA

#8A52CA is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.0% C 0.181 H 302.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A52CA
RGBrgb(138, 82, 202)
HSLhsl(268, 53%, 56%)
HSVhsv(268, 59%, 79%)
CMYKcmyk(31.7%, 59.4%, 0%, 20.8%)
CIE-LABlab(46.58, 46.97, -53.88)
CIE-LCHlch(46.58, 71.48, 311.08°)
OKLaboklab(55.95% 0.097 -0.1525)
OKLCHoklch(55.95% 0.181 302.4)
XYZxyz(24.1567, 15.7021, 57.6238)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CA #92CA52
analogous
#5256CA #8A52CA #C652CA
triadic
#8A52CA #CA8A52 #52CA8A
tetradic
#8A52CA #CA5256 #92CA52 #52CAC6
square
#8A52CA #CA5256 #92CA52 #52CAC6
split-complementary
#8A52CA #CAC652 #56CA52
monochromatic
#4E267C #6B34AB #8A52CA #AA81D8 #C9B0E7

Accessibility & contrast

On white

5.07
#8A52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CA#FFFFFF#000000##FFFFFF
##8A52CA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136DCE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#7E6B86
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a52ca;
/* rgb */ color: rgb(138, 82, 202);
/* oklch */ color: oklch(56.0% 0.181 302.4);
Tailwind
colors: {
  custom: {
    50: '#b085db',
    500: '#8a52ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ca;
$custom-light: #b085db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ca",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 268,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.18074,
    "h": 302.4
  },
  "luminance": 0.15702
}

Semantic roles & 50–950 ramp

primary
#8A52CA
secondary
#BED5A3
accent
#DD4B99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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