#8A47C4#8A47C4

#8A47C4 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.0% C 0.190 H 305.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8A47C4
RGBrgb(138, 71, 196)
HSLhsl(272, 51%, 52%)
HSVhsv(272, 64%, 77%)
CMYKcmyk(29.6%, 63.8%, 0%, 23.1%)
CIE-LABlab(44.08, 51.22, -54.43)
CIE-LCHlch(44.08, 74.74, 313.26°)
OKLaboklab(54.02% 0.1104 -0.1541)
OKLCHoklch(54.02% 0.19 305.6)
XYZxyz(22.6961, 13.8954, 53.7003)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47C4 #81C447
analogous
#4C47C4 #8A47C4 #C447BF
triadic
#8A47C4 #C48A47 #47C48A
tetradic
#8A47C4 #C44C47 #81C447 #47BFC4
square
#8A47C4 #C44C47 #81C447 #47BFC4
split-complementary
#8A47C4 #BFC447 #47C44C
monochromatic
#4B236D #6B329C #8A47C4 #A775D3 #C5A4E2

Accessibility & contrast

On white

5.56
#8A47C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A47C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47C4
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47C4#FFFFFF#000000##FFFFFF
##8A47C41.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#2968C1
Tritanopia (blue-blind)
#80617F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a47c4;
/* rgb */ color: rgb(138, 71, 196);
/* oklch */ color: oklch(54.0% 0.190 305.6);
Tailwind
colors: {
  custom: {
    50: '#b07ed7',
    500: '#8a47c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a47c4;
$custom-light: #b07ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47c4",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 196
  },
  "hsl": {
    "h": 272.16,
    "s": 51.44,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54017,
    "c": 0.18956,
    "h": 305.6
  },
  "luminance": 0.13895
}

Semantic roles & 50–950 ramp

primary
#8A47C4
secondary
#B1CF98
accent
#DB4D8F
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A47C4

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

Preview Lab → · Contrast checker → · Palette generator →

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