#8A52EF#8A52EF

#8A52EF is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.6% C 0.223 H 294.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A52EF
RGBrgb(138, 82, 239)
HSLhsl(261, 83%, 63%)
HSVhsv(261, 66%, 94%)
CMYKcmyk(42.3%, 65.7%, 0%, 6.3%)
CIE-LABlab(49.09, 56.32, -70.85)
CIE-LCHlch(49.09, 90.51, 308.48°)
OKLaboklab(58.57% 0.0942 -0.2024)
OKLCHoklch(58.57% 0.223 294.9)
XYZxyz(29.0744, 17.6691, 83.5233)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52EF #B7EF52
analogous
#5268EF #8A52EF #D852EF
triadic
#8A52EF #EF8A52 #52EF8A
tetradic
#8A52EF #EF5268 #B7EF52 #52EFD8
square
#8A52EF #EF5268 #B7EF52 #52EFD8
split-complementary
#8A52EF #EFD852 #68EF52
monochromatic
#4C11B6 #641AEA #8A52EF #B08AF4 #D6C2F9

Accessibility & contrast

On white

4.63
#8A52EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8A52EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52EF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52EF#FFFFFF#000000##FFFFFF
##8A52EF1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#6F779A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a52ef;
/* rgb */ color: rgb(138, 82, 239);
/* oklch */ color: oklch(58.6% 0.223 294.9);
Tailwind
colors: {
  custom: {
    50: '#b386f5',
    500: '#8a52ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a52ef;
$custom-light: #b386f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52ef",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 261.401,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58568,
    "c": 0.22328,
    "h": 294.9
  },
  "luminance": 0.1767
}

Semantic roles & 50–950 ramp

primary
#8A52EF
secondary
#D6EBB2
accent
#DF0692
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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