#8A3387#8A3387

#8A3387 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.7% C 0.157 H 329.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8A3387
RGBrgb(138, 51, 135)
HSLhsl(302, 46%, 37%)
HSVhsv(302, 63%, 54%)
CMYKcmyk(0%, 63%, 2.2%, 45.9%)
CIE-LABlab(36.97, 47.98, -29.34)
CIE-LCHlch(36.97, 56.24, 328.56°)
OKLaboklab(47.69% 0.1349 -0.0808)
OKLCHoklch(47.69% 0.157 329.1)
XYZxyz(16.0381, 9.5213, 23.9100)
Luminance0.0952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3387 #338A36
analogous
#62338A #8A3387 #8A335C
triadic
#8A3387 #878A33 #33878A
tetradic
#8A3387 #8A6233 #338A36 #335C8A
square
#8A3387 #8A6233 #338A36 #335C8A
split-complementary
#8A3387 #5C8A33 #338A62
monochromatic
#311230 #5D225B #8A3387 #B744B3 #C96EC6

Accessibility & contrast

On white

7.23
#8A3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3387
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3387#FFFFFF#000000##FFFFFF
##8A33871.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3387;
/* rgb */ color: rgb(138, 51, 135);
/* oklch */ color: oklch(47.7% 0.157 329.1);
Tailwind
colors: {
  custom: {
    50: '#af71aa',
    500: '#8a3387',
    950: '#000000',
  },
}
SCSS
$custom: #8a3387;
$custom-light: #af71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3387",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 302.069,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47694,
    "c": 0.15723,
    "h": 329.1
  },
  "luminance": 0.0952
}

Semantic roles & 50–950 ramp

primary
#8A3387
secondary
#67B16A
accent
#D65752
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3387

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

Preview Lab → · Contrast checker → · Palette generator →

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