#8A52BC#8A52BC

#8A52BC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.164 H 306.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A52BC
RGBrgb(138, 82, 188)
HSLhsl(272, 44%, 53%)
HSVhsv(272, 56%, 74%)
CMYKcmyk(26.6%, 56.4%, 0%, 26.3%)
CIE-LABlab(45.73, 43.57, -47.13)
CIE-LCHlch(45.73, 64.19, 312.75°)
OKLaboklab(55.06% 0.0969 -0.1328)
OKLCHoklch(55.06% 0.164 306.1)
XYZxyz(22.5737, 15.0689, 49.2866)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BC #84BC52
analogous
#5552BC #8A52BC #BC52B9
triadic
#8A52BC #BC8A52 #52BC8A
tetradic
#8A52BC #BC5552 #84BC52 #52B9BC
square
#8A52BC #BC5552 #84BC52 #52B9BC
split-complementary
#8A52BC #B9BC52 #52BC55
monochromatic
#4C296A #6B3A97 #8A52BC #A87ECD #C6AADE

Accessibility & contrast

On white

5.23
#8A52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A52BC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BC#FFFFFF#000000##FFFFFF
##8A52BC1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABF
Deuteranopia (green-blind)
#406DB9
Tritanopia (blue-blind)
#82667F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a52bc;
/* rgb */ color: rgb(138, 82, 188);
/* oklch */ color: oklch(55.1% 0.164 306.1);
Tailwind
colors: {
  custom: {
    50: '#af85d1',
    500: '#8a52bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a52bc;
$custom-light: #af85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52bc",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 271.698,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55056,
    "c": 0.16435,
    "h": 306.1
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#8A52BC
secondary
#B4CC9E
accent
#D45490
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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