#8A3381#8A3381

#8A3381 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.4% C 0.152 H 332.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3381
RGBrgb(138, 51, 129)
HSLhsl(306, 46%, 37%)
HSVhsv(306, 63%, 54%)
CMYKcmyk(0%, 63%, 6.5%, 45.9%)
CIE-LABlab(36.66, 46.92, -26.11)
CIE-LCHlch(36.66, 53.70, 330.91°)
OKLaboklab(47.37% 0.1342 -0.0715)
OKLCHoklch(47.37% 0.152 332)
XYZxyz(15.6275, 9.3571, 21.7476)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3381 #338A3C
analogous
#68338A #8A3381 #8A3356
triadic
#8A3381 #818A33 #33818A
tetradic
#8A3381 #8A6833 #338A3C #33568A
square
#8A3381 #8A6833 #338A3C #33568A
split-complementary
#8A3381 #568A33 #338A68
monochromatic
#31122D #5D2257 #8A3381 #B744AB #C96EC0

Accessibility & contrast

On white

7.31
#8A3381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A3381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3381
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3381#FFFFFF#000000##FFFFFF
##8A33811.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4E83
Deuteranopia (green-blind)
#4C5B7F
Tritanopia (blue-blind)
#903B55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3381;
/* rgb */ color: rgb(138, 51, 129);
/* oklch */ color: oklch(47.4% 0.152 332.0);
Tailwind
colors: {
  custom: {
    50: '#af71a6',
    500: '#8a3381',
    950: '#000000',
  },
}
SCSS
$custom: #8a3381;
$custom-light: #af71a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3381",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 129
  },
  "hsl": {
    "h": 306.207,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47371,
    "c": 0.15209,
    "h": 332
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#8A3381
secondary
#67B16F
accent
#D66052
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3381

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

Preview Lab → · Contrast checker → · Palette generator →

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