#8A47AA#8A47AA

#8A47AA is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.3% C 0.161 H 313.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A47AA
RGBrgb(138, 71, 170)
HSLhsl(281, 41%, 47%)
HSVhsv(281, 58%, 67%)
CMYKcmyk(18.8%, 58.2%, 0%, 33.3%)
CIE-LABlab(42.48, 45.27, -41.74)
CIE-LCHlch(42.48, 61.58, 317.32°)
OKLaboklab(52.34% 0.1108 -0.117)
OKLCHoklch(52.34% 0.161 313.4)
XYZxyz(19.9889, 12.8126, 39.4425)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47AA #67AA47
analogous
#5847AA #8A47AA #AA4799
triadic
#8A47AA #AA8A47 #47AA8A
tetradic
#8A47AA #AA5847 #67AA47 #4799AA
square
#8A47AA #AA5847 #67AA47 #4799AA
split-complementary
#8A47AA #99AA47 #47AA58
monochromatic
#442354 #67357F #8A47AA #A66CC2 #C098D4

Accessibility & contrast

On white

5.89
#8A47AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A47AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47AA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47AA#FFFFFF#000000##FFFFFF
##8A47AA1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AD
Deuteranopia (green-blind)
#4366A8
Tritanopia (blue-blind)
#875872
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a47aa;
/* rgb */ color: rgb(138, 71, 170);
/* oklch */ color: oklch(52.3% 0.161 313.4);
Tailwind
colors: {
  custom: {
    50: '#af7dc4',
    500: '#8a47aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a47aa;
$custom-light: #af7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47aa",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 170
  },
  "hsl": {
    "h": 280.606,
    "s": 41.079,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52337,
    "c": 0.16108,
    "h": 313.4
  },
  "luminance": 0.12812
}

Semantic roles & 50–950 ramp

primary
#8A47AA
secondary
#9DC08D
accent
#D1577E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47AA

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

Preview Lab → · Contrast checker → · Palette generator →

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