#8A3682#8A3682

#8A3682 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 47.8% C 0.148 H 331.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A3682
RGBrgb(138, 54, 130)
HSLhsl(306, 44%, 38%)
HSVhsv(306, 61%, 54%)
CMYKcmyk(0%, 60.9%, 5.8%, 45.9%)
CIE-LABlab(37.21, 45.72, -25.87)
CIE-LCHlch(37.21, 52.53, 330.50°)
OKLaboklab(47.79% 0.1304 -0.0708)
OKLCHoklch(47.79% 0.148 331.5)
XYZxyz(15.8296, 9.6544, 22.1445)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3682 #368A3E
analogous
#68368A #8A3682 #8A3658
triadic
#8A3682 #828A36 #36828A
tetradic
#8A3682 #8A6836 #368A3E #36588A
square
#8A3682 #8A6836 #368A3E #36588A
split-complementary
#8A3682 #588A36 #368A68
monochromatic
#32142F #5E2559 #8A3682 #B647AB #C872C0

Accessibility & contrast

On white

7.17
#8A3682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A3682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3682
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3682#FFFFFF#000000##FFFFFF
##8A36821.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325084
Deuteranopia (green-blind)
#4D5C80
Tritanopia (blue-blind)
#8F3D57
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3682;
/* rgb */ color: rgb(138, 54, 130);
/* oklch */ color: oklch(47.8% 0.148 331.5);
Tailwind
colors: {
  custom: {
    50: '#af72a6',
    500: '#8a3682',
    950: '#000000',
  },
}
SCSS
$custom: #8a3682;
$custom-light: #af72a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3682",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 305.714,
    "s": 43.75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.14838,
    "h": 331.5
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#8A3682
secondary
#6BB172
accent
#D36054
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3682

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

Preview Lab → · Contrast checker → · Palette generator →

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