#8A3AA7#8A3AA7

#8A3AA7 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.4% C 0.177 H 315.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A3AA7
RGBrgb(138, 58, 167)
HSLhsl(284, 48%, 44%)
HSVhsv(284, 65%, 65%)
CMYKcmyk(17.4%, 65.3%, 0%, 34.5%)
CIE-LABlab(39.95, 51.03, -44.00)
CIE-LCHlch(39.95, 67.38, 319.23°)
OKLaboklab(50.44% 0.1272 -0.1235)
OKLCHoklch(50.44% 0.177 315.8)
XYZxyz(18.9683, 11.2201, 37.7182)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AA7 #57A73A
analogous
#543AA7 #8A3AA7 #A73A8E
triadic
#8A3AA7 #A78A3A #3AA78A
tetradic
#8A3AA7 #A7543A #57A73A #3A8EA7
square
#8A3AA7 #A7543A #57A73A #3A8EA7
split-complementary
#8A3AA7 #8EA73A #3AA754
monochromatic
#3F1A4C #642A7A #8A3AA7 #A859C5 #C086D5

Accessibility & contrast

On white

6.47
#8A3AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AA7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AA7#FFFFFF#000000##FFFFFF
##8A3AA71.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59AA
Deuteranopia (green-blind)
#3A60A4
Tritanopia (blue-blind)
#884E6B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3aa7;
/* rgb */ color: rgb(138, 58, 167);
/* oklch */ color: oklch(50.4% 0.177 315.8);
Tailwind
colors: {
  custom: {
    50: '#af76c2',
    500: '#8a3aa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3aa7;
$custom-light: #af76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3aa7",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 167
  },
  "hsl": {
    "h": 284.037,
    "s": 48.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.17725,
    "h": 315.8
  },
  "luminance": 0.11219
}

Semantic roles & 50–950 ramp

primary
#8A3AA7
secondary
#8FBF7E
accent
#D85074
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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