#8A47A5#8A47A5

#8A47A5 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.0% C 0.156 H 315.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A47A5
RGBrgb(138, 71, 165)
HSLhsl(283, 40%, 46%)
HSVhsv(283, 57%, 65%)
CMYKcmyk(16.4%, 57%, 0%, 35.3%)
CIE-LABlab(42.20, 44.18, -39.23)
CIE-LCHlch(42.20, 59.08, 318.40°)
OKLaboklab(52.04% 0.1105 -0.1096)
OKLCHoklch(52.04% 0.156 315.2)
XYZxyz(19.5249, 12.6270, 36.9987)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A5 #62A547
analogous
#5B47A5 #8A47A5 #A54791
triadic
#8A47A5 #A58A47 #47A58A
tetradic
#8A47A5 #A55B47 #62A547 #4791A5
square
#8A47A5 #A55B47 #62A547 #4791A5
split-complementary
#8A47A5 #91A547 #47A55B
monochromatic
#42224F #66357A #8A47A5 #A76ABF #C095D1

Accessibility & contrast

On white

5.96
#8A47A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A47A5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A5#FFFFFF#000000##FFFFFF
##8A47A51.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A8
Deuteranopia (green-blind)
#4665A3
Tritanopia (blue-blind)
#88576F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a47a5;
/* rgb */ color: rgb(138, 71, 165);
/* oklch */ color: oklch(52.0% 0.156 315.2);
Tailwind
colors: {
  custom: {
    50: '#af7dc0',
    500: '#8a47a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a5;
$custom-light: #af7dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a5",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 165
  },
  "hsl": {
    "h": 282.766,
    "s": 39.831,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52038,
    "c": 0.15565,
    "h": 315.2
  },
  "luminance": 0.12626
}

Semantic roles & 50–950 ramp

primary
#8A47A5
secondary
#99BD8B
accent
#D0587A
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A5

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

Preview Lab → · Contrast checker → · Palette generator →

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