#8A52AF#8A52AF

#8A52AF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.3% C 0.149 H 310.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A52AF
RGBrgb(138, 82, 175)
HSLhsl(276, 37%, 50%)
HSVhsv(276, 53%, 69%)
CMYKcmyk(21.1%, 53.1%, 0%, 31.4%)
CIE-LABlab(44.99, 40.51, -40.71)
CIE-LCHlch(44.99, 57.43, 314.86°)
OKLaboklab(54.27% 0.0961 -0.114)
OKLCHoklch(54.27% 0.149 310.1)
XYZxyz(21.2349, 14.5334, 42.2357)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52AF #77AF52
analogous
#5B52AF #8A52AF #AF52A5
triadic
#8A52AF #AF8A52 #52AF8A
tetradic
#8A52AF #AF5B52 #77AF52 #52A5AF
square
#8A52AF #AF5B52 #77AF52 #52A5AF
split-complementary
#8A52AF #A5AF52 #52AF5B
monochromatic
#482B5C #693E86 #8A52AF #A67CC2 #C3A6D6

Accessibility & contrast

On white

5.38
#8A52AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A52AF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52AF#FFFFFF#000000##FFFFFF
##8A52AF1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#4A6BAD
Tritanopia (blue-blind)
#856279
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a52af;
/* rgb */ color: rgb(138, 82, 175);
/* oklch */ color: oklch(54.3% 0.149 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae85c7',
    500: '#8a52af',
    950: '#000000',
  },
}
SCSS
$custom: #8a52af;
$custom-light: #ae85c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52af",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 276.129,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54272,
    "c": 0.14911,
    "h": 310.1
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#8A52AF
secondary
#AAC39A
accent
#CD5B88
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A52AF

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

Preview Lab → · Contrast checker → · Palette generator →

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