#8A52BB#8A52BB

#8A52BB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.163 H 306.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A52BB
RGBrgb(138, 82, 187)
HSLhsl(272, 44%, 53%)
HSVhsv(272, 56%, 73%)
CMYKcmyk(26.2%, 56.1%, 0%, 26.7%)
CIE-LABlab(45.67, 43.33, -46.65)
CIE-LCHlch(45.67, 63.67, 312.89°)
OKLaboklab(54.99% 0.0968 -0.1313)
OKLCHoklch(54.99% 0.163 306.4)
XYZxyz(22.4663, 15.0259, 48.7208)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BB #83BB52
analogous
#5652BB #8A52BB #BB52B7
triadic
#8A52BB #BB8A52 #52BB8A
tetradic
#8A52BB #BB5652 #83BB52 #52B7BB
square
#8A52BB #BB5652 #83BB52 #52B7BB
split-complementary
#8A52BB #B7BB52 #52BB56
monochromatic
#4B2969 #6B3B95 #8A52BB #A87ECC #C5AADE

Accessibility & contrast

On white

5.24
#8A52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52BB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BB#FFFFFF#000000##FFFFFF
##8A52BB1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#416DB8
Tritanopia (blue-blind)
#82667F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a52bb;
/* rgb */ color: rgb(138, 82, 187);
/* oklch */ color: oklch(55.0% 0.163 306.4);
Tailwind
colors: {
  custom: {
    50: '#af85d0',
    500: '#8a52bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a52bb;
$custom-light: #af85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52bb",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 272,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54994,
    "c": 0.16317,
    "h": 306.4
  },
  "luminance": 0.15026
}

Semantic roles & 50–950 ramp

primary
#8A52BB
secondary
#B3CB9E
accent
#D35490
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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