#8A3886#8A3886

#8A3886 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.3% C 0.149 H 329.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A3886
RGBrgb(138, 56, 134)
HSLhsl(303, 42%, 38%)
HSVhsv(303, 59%, 54%)
CMYKcmyk(0%, 59.4%, 2.9%, 45.9%)
CIE-LABlab(37.76, 45.49, -27.48)
CIE-LCHlch(37.76, 53.15, 328.87°)
OKLaboklab(48.25% 0.1282 -0.0755)
OKLCHoklch(48.25% 0.149 329.5)
XYZxyz(16.1983, 9.9539, 23.6178)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3886 #388A3C
analogous
#65388A #8A3886 #8A385D
triadic
#8A3886 #868A38 #38868A
tetradic
#8A3886 #8A6538 #388A3C #385D8A
square
#8A3886 #8A6538 #388A3C #385D8A
split-complementary
#8A3886 #5D8A38 #388A65
monochromatic
#331531 #5E265C #8A3886 #B54AB0 #C775C3

Accessibility & contrast

On white

7.02
#8A3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A3886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3886
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3886#FFFFFF#000000##FFFFFF
##8A38861.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325288
Deuteranopia (green-blind)
#4C5D84
Tritanopia (blue-blind)
#8F4159
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3886;
/* rgb */ color: rgb(138, 56, 134);
/* oklch */ color: oklch(48.3% 0.149 329.5);
Tailwind
colors: {
  custom: {
    50: '#af74a9',
    500: '#8a3886',
    950: '#000000',
  },
}
SCSS
$custom: #8a3886;
$custom-light: #af74a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3886",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 302.927,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48254,
    "c": 0.14877,
    "h": 329.5
  },
  "luminance": 0.09953
}

Semantic roles & 50–950 ramp

primary
#8A3886
secondary
#6EB071
accent
#D25C56
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3886

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

Preview Lab → · Contrast checker → · Palette generator →

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