#8A47B1#8A47B1

#8A47B1 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.169 H 311.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A47B1
RGBrgb(138, 71, 177)
HSLhsl(278, 43%, 49%)
HSVhsv(278, 60%, 69%)
CMYKcmyk(22%, 59.9%, 0%, 30.6%)
CIE-LABlab(42.89, 46.84, -45.23)
CIE-LCHlch(42.89, 65.11, 316.00°)
OKLaboklab(52.77% 0.1109 -0.1271)
OKLCHoklch(52.77% 0.169 311.1)
XYZxyz(20.6688, 13.0845, 43.0232)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B1 #6EB147
analogous
#5547B1 #8A47B1 #B147A3
triadic
#8A47B1 #B18A47 #47B18A
tetradic
#8A47B1 #B15547 #6EB147 #47A3B1
square
#8A47B1 #B15547 #6EB147 #47A3B1
split-complementary
#8A47B1 #A3B147 #47B155
monochromatic
#46245A #683585 #8A47B1 #A670C6 #C19BD7

Accessibility & contrast

On white

5.81
#8A47B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A47B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B1
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B1#FFFFFF#000000##FFFFFF
##8A47B11.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#3D67AE
Tritanopia (blue-blind)
#855B75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47b1;
/* rgb */ color: rgb(138, 71, 177);
/* oklch */ color: oklch(52.8% 0.169 311.1);
Tailwind
colors: {
  custom: {
    50: '#af7ec9',
    500: '#8a47b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b1;
$custom-light: #af7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b1",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 177
  },
  "hsl": {
    "h": 277.925,
    "s": 42.742,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52769,
    "c": 0.16872,
    "h": 311.1
  },
  "luminance": 0.13084
}

Semantic roles & 50–950 ramp

primary
#8A47B1
secondary
#A3C390
accent
#D35583
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B1

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

Preview Lab → · Contrast checker → · Palette generator →

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