#8A52B0#8A52B0

#8A52B0 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.3% C 0.150 H 309.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A52B0
RGBrgb(138, 82, 176)
HSLhsl(276, 37%, 51%)
HSVhsv(276, 53%, 69%)
CMYKcmyk(21.6%, 53.4%, 0%, 31%)
CIE-LABlab(45.04, 40.74, -41.21)
CIE-LCHlch(45.04, 57.95, 314.68°)
OKLaboklab(54.33% 0.0962 -0.1154)
OKLCHoklch(54.33% 0.15 309.8)
XYZxyz(21.3335, 14.5728, 42.7549)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52B0 #78B052
analogous
#5B52B0 #8A52B0 #B052A7
triadic
#8A52B0 #B08A52 #52B08A
tetradic
#8A52B0 #B05B52 #78B052 #52A7B0
square
#8A52B0 #B05B52 #78B052 #52A7B0
split-complementary
#8A52B0 #A7B052 #52B05B
monochromatic
#492B5D #693E87 #8A52B0 #A67CC3 #C3A6D6

Accessibility & contrast

On white

5.36
#8A52B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A52B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52B0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52B0#FFFFFF#000000##FFFFFF
##8A52B01.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3768B3
Deuteranopia (green-blind)
#496CAE
Tritanopia (blue-blind)
#856279
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a52b0;
/* rgb */ color: rgb(138, 82, 176);
/* oklch */ color: oklch(54.3% 0.150 309.8);
Tailwind
colors: {
  custom: {
    50: '#ae85c8',
    500: '#8a52b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a52b0;
$custom-light: #ae85c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52b0",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 176
  },
  "hsl": {
    "h": 275.745,
    "s": 37.302,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5433,
    "c": 0.15028,
    "h": 309.8
  },
  "luminance": 0.14572
}

Semantic roles & 50–950 ramp

primary
#8A52B0
secondary
#ABC49A
accent
#CD5B89
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A52B0

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

Preview Lab → · Contrast checker → · Palette generator →

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