#8A47C6#8A47C6

#8A47C6 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.2% C 0.192 H 305.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A47C6
RGBrgb(138, 71, 198)
HSLhsl(272, 53%, 53%)
HSVhsv(272, 64%, 78%)
CMYKcmyk(30.3%, 64.1%, 0%, 22.4%)
CIE-LABlab(44.21, 51.70, -55.37)
CIE-LCHlch(44.21, 75.75, 313.03°)
OKLaboklab(54.15% 0.1102 -0.1569)
OKLCHoklch(54.15% 0.192 305.1)
XYZxyz(22.9253, 13.9871, 54.9072)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47C6 #83C647
analogous
#4B47C6 #8A47C6 #C647C2
triadic
#8A47C6 #C68A47 #47C68A
tetradic
#8A47C6 #C64B47 #83C647 #47C2C6
square
#8A47C6 #C64B47 #83C647 #47C2C6
split-complementary
#8A47C6 #C2C647 #47C64B
monochromatic
#4B2370 #6B319F #8A47C6 #A876D4 #C5A4E3

Accessibility & contrast

On white

5.53
#8A47C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A47C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47C6
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47C6#FFFFFF#000000##FFFFFF
##8A47C61.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#2569C3
Tritanopia (blue-blind)
#7F6280
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a47c6;
/* rgb */ color: rgb(138, 71, 198);
/* oklch */ color: oklch(54.2% 0.192 305.1);
Tailwind
colors: {
  custom: {
    50: '#b07ed8',
    500: '#8a47c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a47c6;
$custom-light: #b07ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47c6",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 198
  },
  "hsl": {
    "h": 271.654,
    "s": 52.697,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54154,
    "c": 0.19174,
    "h": 305.1
  },
  "luminance": 0.13987
}

Semantic roles & 50–950 ramp

primary
#8A47C6
secondary
#B3D099
accent
#DC4C90
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47C6

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

Preview Lab → · Contrast checker → · Palette generator →

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