#8A3581#8A3581

#8A3581 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.6% C 0.149 H 332.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A3581
RGBrgb(138, 53, 129)
HSLhsl(306, 45%, 37%)
HSVhsv(306, 62%, 54%)
CMYKcmyk(0%, 61.6%, 6.5%, 45.9%)
CIE-LABlab(37.00, 46.01, -25.59)
CIE-LCHlch(37.00, 52.65, 330.92°)
OKLaboklab(47.61% 0.1316 -0.07)
OKLCHoklch(47.61% 0.149 332)
XYZxyz(15.7168, 9.5356, 21.7774)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3581 #358A3E
analogous
#69358A #8A3581 #8A3556
triadic
#8A3581 #818A35 #35818A
tetradic
#8A3581 #8A6935 #358A3E #35568A
square
#8A3581 #8A6935 #358A3E #35568A
split-complementary
#8A3581 #568A35 #358A69
monochromatic
#32132E #5E2458 #8A3581 #B646AA #C871BF

Accessibility & contrast

On white

7.22
#8A3581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3581
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3581#FFFFFF#000000##FFFFFF
##8A35811.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314F83
Deuteranopia (green-blind)
#4D5B7F
Tritanopia (blue-blind)
#903C56
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3581;
/* rgb */ color: rgb(138, 53, 129);
/* oklch */ color: oklch(47.6% 0.149 332.0);
Tailwind
colors: {
  custom: {
    50: '#af72a6',
    500: '#8a3581',
    950: '#000000',
  },
}
SCSS
$custom: #8a3581;
$custom-light: #af72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3581",
  "rgb": {
    "r": 138,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 306.353,
    "s": 44.503,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47614,
    "c": 0.14907,
    "h": 332
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#8A3581
secondary
#6AB172
accent
#D46154
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3581

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

Preview Lab → · Contrast checker → · Palette generator →

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