#8A3582#8A3582

#8A3582 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.7% C 0.150 H 331.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A3582
RGBrgb(138, 53, 130)
HSLhsl(306, 45%, 37%)
HSVhsv(306, 62%, 54%)
CMYKcmyk(0%, 61.6%, 5.8%, 45.9%)
CIE-LABlab(37.05, 46.18, -26.13)
CIE-LCHlch(37.05, 53.06, 330.50°)
OKLaboklab(47.67% 0.1317 -0.0716)
OKLCHoklch(47.67% 0.15 331.5)
XYZxyz(15.7836, 9.5623, 22.1292)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3582 #358A3D
analogous
#68358A #8A3582 #8A3558
triadic
#8A3582 #828A35 #35828A
tetradic
#8A3582 #8A6835 #358A3D #35588A
square
#8A3582 #8A6835 #358A3D #35588A
split-complementary
#8A3582 #588A35 #358A68
monochromatic
#32132F #5E2458 #8A3582 #B646AC #C871C0

Accessibility & contrast

On white

7.21
#8A3582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A3582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3582
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3582#FFFFFF#000000##FFFFFF
##8A35821.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315084
Deuteranopia (green-blind)
#4C5B80
Tritanopia (blue-blind)
#8F3D56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3582;
/* rgb */ color: rgb(138, 53, 130);
/* oklch */ color: oklch(47.7% 0.150 331.5);
Tailwind
colors: {
  custom: {
    50: '#af72a6',
    500: '#8a3582',
    950: '#000000',
  },
}
SCSS
$custom: #8a3582;
$custom-light: #af72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3582",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 130
  },
  "hsl": {
    "h": 305.647,
    "s": 44.503,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47667,
    "c": 0.14992,
    "h": 331.5
  },
  "luminance": 0.09561
}

Semantic roles & 50–950 ramp

primary
#8A3582
secondary
#6AB171
accent
#D46054
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3582

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

Preview Lab → · Contrast checker → · Palette generator →

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