#8A47BC#8A47BC

#8A47BC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.5% C 0.181 H 307.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A47BC
RGBrgb(138, 71, 188)
HSLhsl(274, 47%, 51%)
HSVhsv(274, 62%, 74%)
CMYKcmyk(26.6%, 62.2%, 0%, 26.3%)
CIE-LABlab(43.57, 49.35, -50.60)
CIE-LCHlch(43.57, 70.68, 314.29°)
OKLaboklab(53.48% 0.1108 -0.1429)
OKLCHoklch(53.48% 0.181 307.8)
XYZxyz(21.8097, 13.5409, 49.0319)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47BC #79BC47
analogous
#4F47BC #8A47BC #BC47B3
triadic
#8A47BC #BC8A47 #47BC8A
tetradic
#8A47BC #BC4F47 #79BC47 #47B3BC
square
#8A47BC #BC4F47 #79BC47 #47B3BC
split-complementary
#8A47BC #B3BC47 #47BC4F
monochromatic
#492464 #6A3591 #8A47BC #A774CC #C3A1DD

Accessibility & contrast

On white

5.66
#8A47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A47BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47BC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47BC#FFFFFF#000000##FFFFFF
##8A47BC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0764C0
Deuteranopia (green-blind)
#3368B9
Tritanopia (blue-blind)
#825E7B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a47bc;
/* rgb */ color: rgb(138, 71, 188);
/* oklch */ color: oklch(53.5% 0.181 307.8);
Tailwind
colors: {
  custom: {
    50: '#b07ed1',
    500: '#8a47bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a47bc;
$custom-light: #b07ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47bc",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 274.359,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53479,
    "c": 0.18078,
    "h": 307.8
  },
  "luminance": 0.13541
}

Semantic roles & 50–950 ramp

primary
#8A47BC
secondary
#ACC995
accent
#D6528A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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