#8A3386#8A3386

#8A3386 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.6% C 0.156 H 329.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8A3386
RGBrgb(138, 51, 134)
HSLhsl(303, 46%, 37%)
HSVhsv(303, 63%, 54%)
CMYKcmyk(0%, 63%, 2.9%, 45.9%)
CIE-LABlab(36.92, 47.80, -28.80)
CIE-LCHlch(36.92, 55.81, 328.93°)
OKLaboklab(47.64% 0.1348 -0.0792)
OKLCHoklch(47.64% 0.156 329.6)
XYZxyz(15.9680, 9.4933, 23.5410)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3386 #338A37
analogous
#63338A #8A3386 #8A335A
triadic
#8A3386 #868A33 #33868A
tetradic
#8A3386 #8A6333 #338A37 #335A8A
square
#8A3386 #8A6333 #338A37 #335A8A
split-complementary
#8A3386 #5A8A33 #338A63
monochromatic
#31122F #5D225B #8A3386 #B744B1 #C96EC5

Accessibility & contrast

On white

7.25
#8A3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3386
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3386#FFFFFF#000000##FFFFFF
##8A33861.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4F89
Deuteranopia (green-blind)
#495B84
Tritanopia (blue-blind)
#8F3D58
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3386;
/* rgb */ color: rgb(138, 51, 134);
/* oklch */ color: oklch(47.6% 0.156 329.6);
Tailwind
colors: {
  custom: {
    50: '#af71a9',
    500: '#8a3386',
    950: '#000000',
  },
}
SCSS
$custom: #8a3386;
$custom-light: #af71a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3386",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 302.759,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.15636,
    "h": 329.6
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#8A3386
secondary
#67B16B
accent
#D65852
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3386

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

Preview Lab → · Contrast checker → · Palette generator →

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