#8A47A8#8A47A8

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

Color values

HEX#8A47A8
RGBrgb(138, 71, 168)
HSLhsl(281, 41%, 47%)
HSVhsv(281, 58%, 66%)
CMYKcmyk(17.9%, 57.7%, 0%, 34.1%)
CIE-LABlab(42.37, 44.83, -40.74)
CIE-LCHlch(42.37, 60.58, 317.74°)
OKLaboklab(52.22% 0.1107 -0.114)
OKLCHoklch(52.22% 0.159 314.1)
XYZxyz(19.8012, 12.7375, 38.4537)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47A8 #65A847
analogous
#5947A8 #8A47A8 #A84796
triadic
#8A47A8 #A88A47 #47A88A
tetradic
#8A47A8 #A85947 #65A847 #4796A8
square
#8A47A8 #A85947 #65A847 #4796A8
split-complementary
#8A47A8 #96A847 #47A859
monochromatic
#432352 #67357D #8A47A8 #A66CC1 #C097D3

Accessibility & contrast

On white

5.92
#8A47A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A47A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47A8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47A8#FFFFFF#000000##FFFFFF
##8A47A81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#4466A6
Tritanopia (blue-blind)
#885871
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a47a8;
/* rgb */ color: rgb(138, 71, 168);
/* oklch */ color: oklch(52.2% 0.159 314.1);
Tailwind
colors: {
  custom: {
    50: '#af7dc2',
    500: '#8a47a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a47a8;
$custom-light: #af7dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47a8",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 281.443,
    "s": 40.586,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52216,
    "c": 0.1589,
    "h": 314.1
  },
  "luminance": 0.12737
}

Semantic roles & 50–950 ramp

primary
#8A47A8
secondary
#9CBF8C
accent
#D0577D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A47A8

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

Preview Lab → · Contrast checker → · Palette generator →

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