#8A3286#8A3286

#8A3286 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.5% C 0.158 H 329.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A3286
RGBrgb(138, 50, 134)
HSLhsl(303, 47%, 37%)
HSVhsv(303, 64%, 54%)
CMYKcmyk(0%, 63.8%, 2.9%, 45.9%)
CIE-LABlab(36.76, 48.25, -29.05)
CIE-LCHlch(36.76, 56.32, 328.94°)
OKLaboklab(47.52% 0.1361 -0.0799)
OKLCHoklch(47.52% 0.158 329.6)
XYZxyz(15.9248, 9.4068, 23.5266)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3286 #328A36
analogous
#62328A #8A3286 #8A325A
triadic
#8A3286 #868A32 #32868A
tetradic
#8A3286 #8A6232 #328A36 #325A8A
square
#8A3286 #8A6232 #328A36 #325A8A
split-complementary
#8A3286 #5A8A32 #328A62
monochromatic
#30112F #5D225A #8A3286 #B742B2 #CA6CC6

Accessibility & contrast

On white

7.29
#8A3286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A3286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3286
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3286#FFFFFF#000000##FFFFFF
##8A32861.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4F89
Deuteranopia (green-blind)
#495B84
Tritanopia (blue-blind)
#8F3C57
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3286;
/* rgb */ color: rgb(138, 50, 134);
/* oklch */ color: oklch(47.5% 0.158 329.6);
Tailwind
colors: {
  custom: {
    50: '#af70a9',
    500: '#8a3286',
    950: '#000000',
  },
}
SCSS
$custom: #8a3286;
$custom-light: #af70a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3286",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 134
  },
  "hsl": {
    "h": 302.727,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47522,
    "c": 0.15782,
    "h": 329.6
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#8A3286
secondary
#66B26A
accent
#D65751
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3286

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

Preview Lab → · Contrast checker → · Palette generator →

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