#8A52E8#8A52E8

#8A52E8 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.215 H 296.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A52E8
RGBrgb(138, 82, 232)
HSLhsl(262, 77%, 62%)
HSVhsv(262, 65%, 91%)
CMYKcmyk(40.5%, 64.7%, 0%, 9%)
CIE-LABlab(48.59, 54.52, -67.73)
CIE-LCHlch(48.59, 86.95, 308.83°)
OKLaboklab(58.05% 0.095 -0.1933)
OKLCHoklch(58.05% 0.215 296.2)
XYZxyz(28.0602, 17.2635, 78.1821)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E8 #B0E852
analogous
#5265E8 #8A52E8 #D552E8
triadic
#8A52E8 #E88A52 #52E88A
tetradic
#8A52E8 #E85265 #B0E852 #52E8D5
square
#8A52E8 #E85265 #B0E852 #52E8D5
split-complementary
#8A52E8 #E8D552 #65E852
monochromatic
#4D16A9 #661EDF #8A52E8 #AF88EF #D3BEF6

Accessibility & contrast

On white

4.72
#8A52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E8#FFFFFF#000000##FFFFFF
##8A52E81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#727596
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a52e8;
/* rgb */ color: rgb(138, 82, 232);
/* oklch */ color: oklch(58.0% 0.215 296.2);
Tailwind
colors: {
  custom: {
    50: '#b386f0',
    500: '#8a52e8',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e8;
$custom-light: #b386f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e8",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 262.4,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58049,
    "c": 0.21535,
    "h": 296.2
  },
  "luminance": 0.17264
}

Semantic roles & 50–950 ramp

primary
#8A52E8
secondary
#D2E7AF
accent
#D90D8D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8A52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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