#8A47A7#8A47A7

#8A47A7 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.2% C 0.158 H 314.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A47A7
RGBrgb(138, 71, 167)
HSLhsl(282, 40%, 47%)
HSVhsv(282, 57%, 65%)
CMYKcmyk(17.4%, 57.5%, 0%, 34.5%)
CIE-LABlab(42.31, 44.61, -40.24)
CIE-LCHlch(42.31, 60.08, 317.95°)
OKLaboklab(52.16% 0.1106 -0.1126)
OKLCHoklch(52.16% 0.158 314.5)
XYZxyz(19.7084, 12.7004, 37.9650)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A7 #64A747
analogous
#5A47A7 #8A47A7 #A74794
triadic
#8A47A7 #A78A47 #47A78A
tetradic
#8A47A7 #A75A47 #64A747 #4794A7
square
#8A47A7 #A75A47 #64A747 #4794A7
split-complementary
#8A47A7 #94A747 #47A75A
monochromatic
#432251 #67357C #8A47A7 #A66BC0 #C096D2

Accessibility & contrast

On white

5.93
#8A47A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A47A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47A7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A7#FFFFFF#000000##FFFFFF
##8A47A71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#4566A5
Tritanopia (blue-blind)
#885770
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a47a7;
/* rgb */ color: rgb(138, 71, 167);
/* oklch */ color: oklch(52.2% 0.158 314.5);
Tailwind
colors: {
  custom: {
    50: '#af7dc1',
    500: '#8a47a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a7;
$custom-light: #af7dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a7",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 167
  },
  "hsl": {
    "h": 281.875,
    "s": 40.336,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52156,
    "c": 0.15782,
    "h": 314.5
  },
  "luminance": 0.127
}

Semantic roles & 50–950 ramp

primary
#8A47A7
secondary
#9BBE8B
accent
#D0587C
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A7

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

Preview Lab → · Contrast checker → · Palette generator →

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