#8A47C7#8A47C7

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

Color values

HEX#8A47C7
RGBrgb(138, 71, 199)
HSLhsl(271, 53%, 53%)
HSVhsv(271, 64%, 78%)
CMYKcmyk(30.7%, 64.3%, 0%, 22%)
CIE-LABlab(44.28, 51.93, -55.85)
CIE-LCHlch(44.28, 76.26, 312.92°)
OKLaboklab(54.22% 0.1102 -0.1583)
OKLCHoklch(54.22% 0.193 304.8)
XYZxyz(23.0410, 14.0334, 55.5166)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47C7 #84C747
analogous
#4A47C7 #8A47C7 #C747C4
triadic
#8A47C7 #C78A47 #47C78A
tetradic
#8A47C7 #C74A47 #84C747 #47C4C7
square
#8A47C7 #C74A47 #84C747 #47C4C7
split-complementary
#8A47C7 #C4C747 #47C74A
monochromatic
#4C2271 #6B31A0 #8A47C7 #A876D5 #C6A5E4

Accessibility & contrast

On white

5.52
#8A47C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8A47C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47C7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47C7#FFFFFF#000000##FFFFFF
##8A47C71.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#2469C4
Tritanopia (blue-blind)
#7F6281
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a47c7;
/* rgb */ color: rgb(138, 71, 199);
/* oklch */ color: oklch(54.2% 0.193 304.8);
Tailwind
colors: {
  custom: {
    50: '#b07ed9',
    500: '#8a47c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a47c7;
$custom-light: #b07ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47c7",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 199
  },
  "hsl": {
    "h": 271.406,
    "s": 53.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54223,
    "c": 0.19284,
    "h": 304.8
  },
  "luminance": 0.14033
}

Semantic roles & 50–950 ramp

primary
#8A47C7
secondary
#B4D199
accent
#DD4B90
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47C7

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

Preview Lab → · Contrast checker → · Palette generator →

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