#8A52A2#8A52A2

#8A52A2 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 53.5% C 0.134 H 315.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8A52A2
RGBrgb(138, 82, 162)
HSLhsl(282, 33%, 48%)
HSVhsv(282, 49%, 64%)
CMYKcmyk(14.8%, 49.4%, 0%, 36.5%)
CIE-LABlab(44.30, 37.57, -34.12)
CIE-LCHlch(44.30, 50.75, 317.76°)
OKLaboklab(53.54% 0.0947 -0.0948)
OKLCHoklch(53.54% 0.134 315)
XYZxyz(20.0191, 14.0470, 35.8322)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52A2 #6AA252
analogous
#6252A2 #8A52A2 #A25292
triadic
#8A52A2 #A28A52 #52A28A
tetradic
#8A52A2 #A26252 #6AA252 #5292A2
square
#8A52A2 #A26252 #6AA252 #5292A2
split-complementary
#8A52A2 #92A252 #52A262
monochromatic
#452951 #673D79 #8A52A2 #A677BA #C1A0CF

Accessibility & contrast

On white

5.51
#8A52A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A52A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52A2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52A2#FFFFFF#000000##FFFFFF
##8A52A21.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4165A5
Deuteranopia (green-blind)
#526AA0
Tritanopia (blue-blind)
#885E72
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a52a2;
/* rgb */ color: rgb(138, 82, 162);
/* oklch */ color: oklch(53.5% 0.134 315.0);
Tailwind
colors: {
  custom: {
    50: '#ae84be',
    500: '#8a52a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a52a2;
$custom-light: #ae84be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52a2",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 282,
    "s": 32.787,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53538,
    "c": 0.13401,
    "h": 315
  },
  "luminance": 0.14046
}

Semantic roles & 50–950 ramp

primary
#8A52A2
secondary
#A0BC94
accent
#C95F7F
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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