#8A3481#8A3481

#8A3481 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.5% C 0.151 H 332.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A3481
RGBrgb(138, 52, 129)
HSLhsl(306, 45%, 37%)
HSVhsv(306, 62%, 54%)
CMYKcmyk(0%, 62.3%, 6.5%, 45.9%)
CIE-LABlab(36.83, 46.47, -25.85)
CIE-LCHlch(36.83, 53.18, 330.91°)
OKLaboklab(47.49% 0.1329 -0.0708)
OKLCHoklch(47.49% 0.151 332)
XYZxyz(15.6717, 9.4454, 21.7623)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3481 #348A3D
analogous
#68348A #8A3481 #8A3456
triadic
#8A3481 #818A34 #34818A
tetradic
#8A3481 #8A6834 #348A3D #34568A
square
#8A3481 #8A6834 #348A3D #34568A
split-complementary
#8A3481 #568A34 #348A68
monochromatic
#31132E #5E2357 #8A3481 #B645AB #C96FC0

Accessibility & contrast

On white

7.27
#8A3481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A3481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3481
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3481#FFFFFF#000000##FFFFFF
##8A34811.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304F83
Deuteranopia (green-blind)
#4C5B7F
Tritanopia (blue-blind)
#903B55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3481;
/* rgb */ color: rgb(138, 52, 129);
/* oklch */ color: oklch(47.5% 0.151 332.0);
Tailwind
colors: {
  custom: {
    50: '#af71a6',
    500: '#8a3481',
    950: '#000000',
  },
}
SCSS
$custom: #8a3481;
$custom-light: #af71a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3481",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 129
  },
  "hsl": {
    "h": 306.279,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47492,
    "c": 0.15059,
    "h": 332
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#8A3481
secondary
#69B170
accent
#D56053
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3481

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

Preview Lab → · Contrast checker → · Palette generator →

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