#8A52CE#8A52CE

#8A52CE is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.185 H 301.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A52CE
RGBrgb(138, 82, 206)
HSLhsl(267, 56%, 56%)
HSVhsv(267, 60%, 81%)
CMYKcmyk(33%, 60.2%, 0%, 19.2%)
CIE-LABlab(46.84, 47.96, -55.77)
CIE-LCHlch(46.84, 73.55, 310.69°)
OKLaboklab(56.22% 0.0969 -0.1581)
OKLCHoklch(56.22% 0.185 301.5)
XYZxyz(24.6365, 15.8940, 60.1505)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CE #96CE52
analogous
#5258CE #8A52CE #C852CE
triadic
#8A52CE #CE8A52 #52CE8A
tetradic
#8A52CE #CE5258 #96CE52 #52CEC8
square
#8A52CE #CE5258 #96CE52 #52CEC8
split-complementary
#8A52CE #CEC852 #58CE52
monochromatic
#4E2581 #6B32B1 #8A52CE #AA82DC #CBB1E9

Accessibility & contrast

On white

5.03
#8A52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CE#FFFFFF#000000##FFFFFF
##8A52CE1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046ED2
Deuteranopia (green-blind)
#2C6ECB
Tritanopia (blue-blind)
#7C6C88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52ce;
/* rgb */ color: rgb(138, 82, 206);
/* oklch */ color: oklch(56.2% 0.185 301.5);
Tailwind
colors: {
  custom: {
    50: '#b085de',
    500: '#8a52ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ce;
$custom-light: #b085de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ce",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 267.097,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5622,
    "c": 0.18541,
    "h": 301.5
  },
  "luminance": 0.15894
}

Semantic roles & 50–950 ramp

primary
#8A52CE
secondary
#C0D7A4
accent
#DF499B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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