#8A47C2#8A47C2

#8A47C2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.9% C 0.187 H 306.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A47C2
RGBrgb(138, 71, 194)
HSLhsl(273, 50%, 52%)
HSVhsv(273, 63%, 76%)
CMYKcmyk(28.9%, 63.4%, 0%, 23.9%)
CIE-LABlab(43.95, 50.75, -53.47)
CIE-LCHlch(43.95, 73.72, 313.50°)
OKLaboklab(53.88% 0.1105 -0.1513)
OKLCHoklch(53.88% 0.187 306.1)
XYZxyz(22.4700, 13.8050, 52.5094)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47C2 #7FC247
analogous
#4D47C2 #8A47C2 #C247BD
triadic
#8A47C2 #C28A47 #47C28A
tetradic
#8A47C2 #C24D47 #7FC247 #47BDC2
square
#8A47C2 #C24D47 #7FC247 #47BDC2
split-complementary
#8A47C2 #BDC247 #47C24D
monochromatic
#4B246B #6A3399 #8A47C2 #A775D1 #C4A3E0

Accessibility & contrast

On white

5.58
#8A47C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A47C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47C2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47C2#FFFFFF#000000##FFFFFF
##8A47C21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2B68BF
Tritanopia (blue-blind)
#81617E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a47c2;
/* rgb */ color: rgb(138, 71, 194);
/* oklch */ color: oklch(53.9% 0.187 306.1);
Tailwind
colors: {
  custom: {
    50: '#b07ed5',
    500: '#8a47c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a47c2;
$custom-light: #b07ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47c2",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 272.683,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5388,
    "c": 0.18736,
    "h": 306.1
  },
  "luminance": 0.13805
}

Semantic roles & 50–950 ramp

primary
#8A47C2
secondary
#B0CD97
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A47C2

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

Preview Lab → · Contrast checker → · Palette generator →

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