#8A52E7#8A52E7

#8A52E7 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.214 H 296.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A52E7
RGBrgb(138, 82, 231)
HSLhsl(263, 76%, 61%)
HSVhsv(263, 65%, 91%)
CMYKcmyk(40.3%, 64.5%, 0%, 9.4%)
CIE-LABlab(48.52, 54.27, -67.28)
CIE-LCHlch(48.52, 86.44, 308.89°)
OKLaboklab(57.98% 0.0951 -0.1919)
OKLCHoklch(57.98% 0.214 296.4)
XYZxyz(27.9186, 17.2068, 77.4361)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E7 #AFE752
analogous
#5265E7 #8A52E7 #D552E7
triadic
#8A52E7 #E78A52 #52E78A
tetradic
#8A52E7 #E75265 #AFE752 #52E7D5
square
#8A52E7 #E75265 #AFE752 #52E7D5
split-complementary
#8A52E7 #E7D552 #65E752
monochromatic
#4D17A7 #661FDD #8A52E7 #AE88EE #D3BDF6

Accessibility & contrast

On white

4.73
#8A52E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A52E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E7#FFFFFF#000000##FFFFFF
##8A52E71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#727595
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a52e7;
/* rgb */ color: rgb(138, 82, 231);
/* oklch */ color: oklch(58.0% 0.214 296.4);
Tailwind
colors: {
  custom: {
    50: '#b286f0',
    500: '#8a52e7',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e7;
$custom-light: #b286f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e7",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 262.55,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.57976,
    "c": 0.21421,
    "h": 296.4
  },
  "luminance": 0.17207
}

Semantic roles & 50–950 ramp

primary
#8A52E7
secondary
#D1E6AF
accent
#D80E8C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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