#8A52E9#8A52E9

#8A52E9 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.1% C 0.216 H 296.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A52E9
RGBrgb(138, 82, 233)
HSLhsl(262, 77%, 62%)
HSVhsv(262, 65%, 91%)
CMYKcmyk(40.8%, 64.8%, 0%, 8.6%)
CIE-LABlab(48.66, 54.78, -68.18)
CIE-LCHlch(48.66, 87.46, 308.78°)
OKLaboklab(58.12% 0.0949 -0.1946)
OKLCHoklch(58.12% 0.216 296)
XYZxyz(28.2026, 17.3205, 78.9323)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E9 #B1E952
analogous
#5266E9 #8A52E9 #D652E9
triadic
#8A52E9 #E98A52 #52E98A
tetradic
#8A52E9 #E95266 #B1E952 #52E9D6
square
#8A52E9 #E95266 #B1E952 #52E9D6
split-complementary
#8A52E9 #E9D652 #66E952
monochromatic
#4D16AB #661DE1 #8A52E9 #AF88F0 #D3BFF7

Accessibility & contrast

On white

4.70
#8A52E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A52E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E9
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E9#FFFFFF#000000##FFFFFF
##8A52E91.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EE
Deuteranopia (green-blind)
#0071E6
Tritanopia (blue-blind)
#727596
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a52e9;
/* rgb */ color: rgb(138, 82, 233);
/* oklch */ color: oklch(58.1% 0.216 296.0);
Tailwind
colors: {
  custom: {
    50: '#b386f1',
    500: '#8a52e9',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e9;
$custom-light: #b386f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e9",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 233
  },
  "hsl": {
    "h": 262.252,
    "s": 77.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58123,
    "c": 0.21648,
    "h": 296
  },
  "luminance": 0.17321
}

Semantic roles & 50–950 ramp

primary
#8A52E9
secondary
#D3E7AF
accent
#DA0C8D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A52E9

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

Preview Lab → · Contrast checker → · Palette generator →

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