#8A47A4#8A47A4

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

Color values

HEX#8A47A4
RGBrgb(138, 71, 164)
HSLhsl(283, 40%, 46%)
HSVhsv(283, 57%, 64%)
CMYKcmyk(15.9%, 56.7%, 0%, 35.7%)
CIE-LABlab(42.14, 43.96, -38.72)
CIE-LCHlch(42.14, 58.58, 318.63°)
OKLaboklab(51.98% 0.1105 -0.1081)
OKLCHoklch(51.98% 0.155 315.6)
XYZxyz(19.4343, 12.5907, 36.5213)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A4 #61A447
analogous
#5B47A4 #8A47A4 #A4478F
triadic
#8A47A4 #A48A47 #47A48A
tetradic
#8A47A4 #A45B47 #61A447 #478FA4
square
#8A47A4 #A45B47 #61A447 #478FA4
split-complementary
#8A47A4 #8FA447 #47A45B
monochromatic
#42224F #663579 #8A47A4 #A76ABE #C095D1

Accessibility & contrast

On white

5.97
#8A47A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A47A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47A4
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A4#FFFFFF#000000##FFFFFF
##8A47A41.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA7
Deuteranopia (green-blind)
#4765A2
Tritanopia (blue-blind)
#88566F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a47a4;
/* rgb */ color: rgb(138, 71, 164);
/* oklch */ color: oklch(52.0% 0.155 315.6);
Tailwind
colors: {
  custom: {
    50: '#ae7dbf',
    500: '#8a47a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a4;
$custom-light: #ae7dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a4",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 164
  },
  "hsl": {
    "h": 283.226,
    "s": 39.574,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.15458,
    "h": 315.6
  },
  "luminance": 0.1259
}

Semantic roles & 50–950 ramp

primary
#8A47A4
secondary
#98BD8A
accent
#CF587A
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A4

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

Preview Lab → · Contrast checker → · Palette generator →

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