#8A47A6#8A47A6

#8A47A6 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.1% C 0.157 H 314.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A47A6
RGBrgb(138, 71, 166)
HSLhsl(282, 40%, 46%)
HSVhsv(282, 57%, 65%)
CMYKcmyk(16.9%, 57.2%, 0%, 34.9%)
CIE-LABlab(42.25, 44.40, -39.73)
CIE-LCHlch(42.25, 59.58, 318.17°)
OKLaboklab(52.1% 0.1106 -0.1111)
OKLCHoklch(52.1% 0.157 314.9)
XYZxyz(19.6163, 12.6635, 37.4800)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A6 #63A647
analogous
#5B47A6 #8A47A6 #A64793
triadic
#8A47A6 #A68A47 #47A68A
tetradic
#8A47A6 #A65B47 #63A647 #4793A6
square
#8A47A6 #A65B47 #63A647 #4793A6
split-complementary
#8A47A6 #93A647 #47A65B
monochromatic
#432250 #66357B #8A47A6 #A76BC0 #C096D2

Accessibility & contrast

On white

5.94
#8A47A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A47A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47A6
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A6#FFFFFF#000000##FFFFFF
##8A47A61.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#885770
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a47a6;
/* rgb */ color: rgb(138, 71, 166);
/* oklch */ color: oklch(52.1% 0.157 314.9);
Tailwind
colors: {
  custom: {
    50: '#af7dc1',
    500: '#8a47a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a6;
$custom-light: #af7dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a6",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 166
  },
  "hsl": {
    "h": 282.316,
    "s": 40.084,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52097,
    "c": 0.15673,
    "h": 314.9
  },
  "luminance": 0.12663
}

Semantic roles & 50–950 ramp

primary
#8A47A6
secondary
#9ABE8B
accent
#D0587B
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A6

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

Preview Lab → · Contrast checker → · Palette generator →

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