#8A3188#8A3188

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

Color values

HEX#8A3188
RGBrgb(138, 49, 136)
HSLhsl(301, 48%, 37%)
HSVhsv(301, 64%, 54%)
CMYKcmyk(0%, 64.5%, 1.4%, 45.9%)
CIE-LABlab(36.70, 49.04, -30.37)
CIE-LCHlch(36.70, 57.68, 328.23°)
OKLaboklab(47.52% 0.1375 -0.0837)
OKLCHoklch(47.52% 0.161 328.7)
XYZxyz(16.0233, 9.3786, 24.2541)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3188 #318A33
analogous
#60318A #8A3188 #8A315C
triadic
#8A3188 #888A31 #31888A
tetradic
#8A3188 #8A6031 #318A33 #315C8A
square
#8A3188 #8A6031 #318A33 #315C8A
split-complementary
#8A3188 #5C8A31 #318A60
monochromatic
#30112F #5D215B #8A3188 #B741B5 #CA6BC8

Accessibility & contrast

On white

7.30
#8A3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3188
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3188#FFFFFF#000000##FFFFFF
##8A31881.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274F8B
Deuteranopia (green-blind)
#475B86
Tritanopia (blue-blind)
#8F3C58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3188;
/* rgb */ color: rgb(138, 49, 136);
/* oklch */ color: oklch(47.5% 0.161 328.7);
Tailwind
colors: {
  custom: {
    50: '#af70ab',
    500: '#8a3188',
    950: '#000000',
  },
}
SCSS
$custom: #8a3188;
$custom-light: #af70ab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3188",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 301.348,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47518,
    "c": 0.16098,
    "h": 328.7
  },
  "luminance": 0.09377
}

Semantic roles & 50–950 ramp

primary
#8A3188
secondary
#65B267
accent
#D75451
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3188

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

Preview Lab → · Contrast checker → · Palette generator →

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