#8A47C5#8A47C5

#8A47C5 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.1% C 0.191 H 305.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8A47C5
RGBrgb(138, 71, 197)
HSLhsl(272, 52%, 53%)
HSVhsv(272, 64%, 77%)
CMYKcmyk(29.9%, 64%, 0%, 22.7%)
CIE-LABlab(44.15, 51.46, -54.90)
CIE-LCHlch(44.15, 75.25, 313.15°)
OKLaboklab(54.09% 0.1103 -0.1555)
OKLCHoklch(54.09% 0.191 305.3)
XYZxyz(22.8103, 13.9411, 54.3017)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47C5 #82C547
analogous
#4B47C5 #8A47C5 #C547C1
triadic
#8A47C5 #C58A47 #47C58A
tetradic
#8A47C5 #C54B47 #82C547 #47C1C5
square
#8A47C5 #C54B47 #82C547 #47C1C5
split-complementary
#8A47C5 #C1C547 #47C54B
monochromatic
#4B236F #6B329D #8A47C5 #A876D4 #C5A4E2

Accessibility & contrast

On white

5.54
#8A47C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A47C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47C5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47C5#FFFFFF#000000##FFFFFF
##8A47C51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#2769C2
Tritanopia (blue-blind)
#806280
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a47c5;
/* rgb */ color: rgb(138, 71, 197);
/* oklch */ color: oklch(54.1% 0.191 305.3);
Tailwind
colors: {
  custom: {
    50: '#b07ed7',
    500: '#8a47c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a47c5;
$custom-light: #b07ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47c5",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 271.905,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54085,
    "c": 0.19065,
    "h": 305.3
  },
  "luminance": 0.13941
}

Semantic roles & 50–950 ramp

primary
#8A47C5
secondary
#B2CF99
accent
#DC4C8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A47C5

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

Preview Lab → · Contrast checker → · Palette generator →

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