#8A3184#8A3184

#8A3184 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.3% C 0.158 H 330.5°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A3184
RGBrgb(138, 49, 132)
HSLhsl(304, 48%, 37%)
HSVhsv(304, 64%, 54%)
CMYKcmyk(0%, 64.5%, 4.3%, 45.9%)
CIE-LABlab(36.49, 48.33, -28.23)
CIE-LCHlch(36.49, 55.98, 329.71°)
OKLaboklab(47.3% 0.1371 -0.0776)
OKLCHoklch(47.3% 0.158 330.5)
XYZxyz(15.7443, 9.2670, 22.7848)
Luminance0.0927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3184 #318A37
analogous
#64318A #8A3184 #8A3158
triadic
#8A3184 #848A31 #31848A
tetradic
#8A3184 #8A6431 #318A37 #31588A
square
#8A3184 #8A6431 #318A37 #31588A
split-complementary
#8A3184 #588A31 #318A64
monochromatic
#30112E #5D2159 #8A3184 #B741AF #CA6BC4

Accessibility & contrast

On white

7.36
#8A3184 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A3184 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3184
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3184#FFFFFF#000000##FFFFFF
##8A31841.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4E86
Deuteranopia (green-blind)
#495A82
Tritanopia (blue-blind)
#8F3A56
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3184;
/* rgb */ color: rgb(138, 49, 132);
/* oklch */ color: oklch(47.3% 0.158 330.5);
Tailwind
colors: {
  custom: {
    50: '#af70a8',
    500: '#8a3184',
    950: '#000000',
  },
}
SCSS
$custom: #8a3184;
$custom-light: #af70a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3184",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 132
  },
  "hsl": {
    "h": 304.045,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47297,
    "c": 0.15756,
    "h": 330.5
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#8A3184
secondary
#65B26A
accent
#D75A51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3184

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

Preview Lab → · Contrast checker → · Palette generator →

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