#8A47A2#8A47A2

#8A47A2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 51.9% C 0.152 H 316.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A47A2
RGBrgb(138, 71, 162)
HSLhsl(284, 39%, 46%)
HSVhsv(284, 56%, 64%)
CMYKcmyk(14.8%, 56.2%, 0%, 36.5%)
CIE-LABlab(42.03, 43.53, -37.70)
CIE-LCHlch(42.03, 57.59, 319.10°)
OKLaboklab(51.86% 0.1103 -0.1052)
OKLCHoklch(51.86% 0.152 316.4)
XYZxyz(19.2551, 12.5190, 35.5775)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A2 #5FA247
analogous
#5C47A2 #8A47A2 #A2478C
triadic
#8A47A2 #A28A47 #47A28A
tetradic
#8A47A2 #A25C47 #5FA247 #478CA2
square
#8A47A2 #A25C47 #5FA247 #478CA2
split-complementary
#8A47A2 #8CA247 #47A25C
monochromatic
#42224D #663477 #8A47A2 #A769BD #C094D0

Accessibility & contrast

On white

5.99
#8A47A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A47A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47A2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A2#FFFFFF#000000##FFFFFF
##8A47A21.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#4865A0
Tritanopia (blue-blind)
#89566E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a47a2;
/* rgb */ color: rgb(138, 71, 162);
/* oklch */ color: oklch(51.9% 0.152 316.4);
Tailwind
colors: {
  custom: {
    50: '#ae7dbe',
    500: '#8a47a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a2;
$custom-light: #ae7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a2",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 162
  },
  "hsl": {
    "h": 284.176,
    "s": 39.056,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51862,
    "c": 0.15241,
    "h": 316.4
  },
  "luminance": 0.12518
}

Semantic roles & 50–950 ramp

primary
#8A47A2
secondary
#96BC89
accent
#CF5978
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A2

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

Preview Lab → · Contrast checker → · Palette generator →

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