#8A47B8#8A47B8

#8A47B8 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.176 H 308.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8A47B8
RGBrgb(138, 71, 184)
HSLhsl(276, 44%, 50%)
HSVhsv(276, 61%, 72%)
CMYKcmyk(25%, 61.4%, 0%, 27.8%)
CIE-LABlab(43.32, 48.43, -48.66)
CIE-LCHlch(43.32, 68.65, 314.87°)
OKLaboklab(53.22% 0.1109 -0.1372)
OKLCHoklch(53.22% 0.176 308.9)
XYZxyz(21.3845, 13.3708, 46.7924)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B8 #75B847
analogous
#5147B8 #8A47B8 #B847AE
triadic
#8A47B8 #B88A47 #47B88A
tetradic
#8A47B8 #B85147 #75B847 #47AEB8
square
#8A47B8 #B85147 #75B847 #47AEB8
split-complementary
#8A47B8 #AEB847 #47B851
monochromatic
#482560 #69368C #8A47B8 #A673C9 #C29FDA

Accessibility & contrast

On white

5.72
#8A47B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A47B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B8#FFFFFF#000000##FFFFFF
##8A47B81.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1464BC
Deuteranopia (green-blind)
#3767B5
Tritanopia (blue-blind)
#835D79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b8;
/* rgb */ color: rgb(138, 71, 184);
/* oklch */ color: oklch(53.2% 0.176 308.9);
Tailwind
colors: {
  custom: {
    50: '#af7ece',
    500: '#8a47b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b8;
$custom-light: #af7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b8",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 184
  },
  "hsl": {
    "h": 275.575,
    "s": 44.314,
    "l": 50
  },
  "oklch": {
    "l": 0.53217,
    "c": 0.17639,
    "h": 308.9
  },
  "luminance": 0.1337
}

Semantic roles & 50–950 ramp

primary
#8A47B8
secondary
#A9C794
accent
#D45488
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A47B8

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

Preview Lab → · Contrast checker → · Palette generator →

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