#8A52BF#8A52BF

#8A52BF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.168 H 305.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8A52BF
RGBrgb(138, 82, 191)
HSLhsl(271, 46%, 54%)
HSVhsv(271, 57%, 75%)
CMYKcmyk(27.7%, 57.1%, 0%, 25.1%)
CIE-LABlab(45.91, 44.29, -48.59)
CIE-LCHlch(45.91, 65.75, 312.35°)
OKLaboklab(55.24% 0.0969 -0.137)
OKLCHoklch(55.24% 0.168 305.3)
XYZxyz(22.9005, 15.1996, 51.0075)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BF #87BF52
analogous
#5352BF #8A52BF #BF52BD
triadic
#8A52BF #BF8A52 #52BF8A
tetradic
#8A52BF #BF5352 #87BF52 #52BDBF
square
#8A52BF #BF5352 #87BF52 #52BDBF
split-complementary
#8A52BF #BDBF52 #52BF53
monochromatic
#4C296E #6B399B #8A52BF #A87FD0 #C6ABE0

Accessibility & contrast

On white

5.20
#8A52BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8A52BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52BF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BF#FFFFFF#000000##FFFFFF
##8A52BF1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#3D6DBC
Tritanopia (blue-blind)
#816781
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a52bf;
/* rgb */ color: rgb(138, 82, 191);
/* oklch */ color: oklch(55.2% 0.168 305.3);
Tailwind
colors: {
  custom: {
    50: '#af85d3',
    500: '#8a52bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a52bf;
$custom-light: #af85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52bf",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 270.826,
    "s": 45.992,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55244,
    "c": 0.16786,
    "h": 305.3
  },
  "luminance": 0.15199
}

Semantic roles & 50–950 ramp

primary
#8A52BF
secondary
#B6CE9F
accent
#D65292
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A52BF

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

Preview Lab → · Contrast checker → · Palette generator →

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