#8A52EC#8A52EC

#8A52EC is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.3% C 0.220 H 295.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8A52EC
RGBrgb(138, 82, 236)
HSLhsl(262, 80%, 62%)
HSVhsv(262, 65%, 93%)
CMYKcmyk(41.5%, 65.3%, 0%, 7.5%)
CIE-LABlab(48.88, 55.55, -69.52)
CIE-LCHlch(48.88, 88.99, 308.63°)
OKLaboklab(58.34% 0.0945 -0.1985)
OKLCHoklch(58.34% 0.22 295.5)
XYZxyz(28.6348, 17.4933, 81.2085)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52EC #B4EC52
analogous
#5267EC #8A52EC #D752EC
triadic
#8A52EC #EC8A52 #52EC8A
tetradic
#8A52EC #EC5267 #B4EC52 #52ECD7
square
#8A52EC #EC5267 #B4EC52 #52ECD7
split-complementary
#8A52EC #ECD752 #67EC52
monochromatic
#4C13B0 #651BE6 #8A52EC #AF89F2 #D5C0F8

Accessibility & contrast

On white

4.67
#8A52EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8A52EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52EC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52EC#FFFFFF#000000##FFFFFF
##8A52EC1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#707698
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a52ec;
/* rgb */ color: rgb(138, 82, 236);
/* oklch */ color: oklch(58.3% 0.220 295.5);
Tailwind
colors: {
  custom: {
    50: '#b386f3',
    500: '#8a52ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ec;
$custom-light: #b386f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ec",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 261.818,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58344,
    "c": 0.21989,
    "h": 295.5
  },
  "luminance": 0.17494
}

Semantic roles & 50–950 ramp

primary
#8A52EC
secondary
#D5E9B1
accent
#DD0990
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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