#8A3282#8A3282

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

Color values

HEX#8A3282
RGBrgb(138, 50, 130)
HSLhsl(305, 47%, 37%)
HSVhsv(305, 64%, 54%)
CMYKcmyk(0%, 63.8%, 5.8%, 45.9%)
CIE-LABlab(36.55, 47.54, -26.91)
CIE-LCHlch(36.55, 54.63, 330.49°)
OKLaboklab(47.31% 0.1357 -0.0738)
OKLCHoklch(47.31% 0.154 331.5)
XYZxyz(15.6511, 9.2973, 22.0850)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3282 #328A3A
analogous
#66328A #8A3282 #8A3256
triadic
#8A3282 #828A32 #32828A
tetradic
#8A3282 #8A6632 #328A3A #32568A
square
#8A3282 #8A6632 #328A3A #32568A
split-complementary
#8A3282 #568A32 #328A66
monochromatic
#30112D #5D2258 #8A3282 #B742AC #CA6CC1

Accessibility & contrast

On white

7.34
#8A3282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A3282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3282
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3282#FFFFFF#000000##FFFFFF
##8A32821.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4E84
Deuteranopia (green-blind)
#4B5A80
Tritanopia (blue-blind)
#8F3A55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3282;
/* rgb */ color: rgb(138, 50, 130);
/* oklch */ color: oklch(47.3% 0.154 331.5);
Tailwind
colors: {
  custom: {
    50: '#af70a6',
    500: '#8a3282',
    950: '#000000',
  },
}
SCSS
$custom: #8a3282;
$custom-light: #af70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3282",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 130
  },
  "hsl": {
    "h": 305.455,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47306,
    "c": 0.15442,
    "h": 331.5
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#8A3282
secondary
#66B26D
accent
#D65D51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3282

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

Preview Lab → · Contrast checker → · Palette generator →

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