#8A47AE#8A47AE

#8A47AE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.165 H 312.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A47AE
RGBrgb(138, 71, 174)
HSLhsl(279, 42%, 48%)
HSVhsv(279, 59%, 68%)
CMYKcmyk(20.7%, 59.2%, 0%, 31.8%)
CIE-LABlab(42.71, 46.16, -43.74)
CIE-LCHlch(42.71, 63.59, 316.54°)
OKLaboklab(52.58% 0.1109 -0.1228)
OKLCHoklch(52.58% 0.165 312.1)
XYZxyz(20.3731, 12.9662, 41.4657)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47AE #6BAE47
analogous
#5647AE #8A47AE #AE479E
triadic
#8A47AE #AE8A47 #47AE8A
tetradic
#8A47AE #AE5647 #6BAE47 #479EAE
square
#8A47AE #AE5647 #6BAE47 #479EAE
split-complementary
#8A47AE #9EAE47 #47AE56
monochromatic
#452457 #683583 #8A47AE #A66EC4 #C19AD6

Accessibility & contrast

On white

5.84
#8A47AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A47AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47AE
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47AE#FFFFFF#000000##FFFFFF
##8A47AE1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2561B1
Deuteranopia (green-blind)
#4066AB
Tritanopia (blue-blind)
#865A74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47ae;
/* rgb */ color: rgb(138, 71, 174);
/* oklch */ color: oklch(52.6% 0.165 312.1);
Tailwind
colors: {
  custom: {
    50: '#af7ec7',
    500: '#8a47ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a47ae;
$custom-light: #af7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47ae",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 174
  },
  "hsl": {
    "h": 279.029,
    "s": 42.041,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52582,
    "c": 0.16544,
    "h": 312.1
  },
  "luminance": 0.12966
}

Semantic roles & 50–950 ramp

primary
#8A47AE
secondary
#A1C28F
accent
#D25681
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47AE

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

Preview Lab → · Contrast checker → · Palette generator →

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