#8A47BA#8A47BA

#8A47BA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.179 H 308.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A47BA
RGBrgb(138, 71, 186)
HSLhsl(275, 45%, 50%)
HSVhsv(275, 62%, 73%)
CMYKcmyk(25.8%, 61.8%, 0%, 27.1%)
CIE-LABlab(43.44, 48.89, -49.63)
CIE-LCHlch(43.44, 69.67, 314.57°)
OKLaboklab(53.35% 0.1108 -0.14)
OKLCHoklch(53.35% 0.179 308.4)
XYZxyz(21.5956, 13.4552, 47.9043)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47BA #77BA47
analogous
#5047BA #8A47BA #BA47B0
triadic
#8A47BA #BA8A47 #47BA8A
tetradic
#8A47BA #BA5047 #77BA47 #47B0BA
square
#8A47BA #BA5047 #77BA47 #47B0BA
split-complementary
#8A47BA #B0BA47 #47BA50
monochromatic
#482562 #69358E #8A47BA #A674CB #C3A0DB

Accessibility & contrast

On white

5.69
#8A47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47BA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47BA#FFFFFF#000000##FFFFFF
##8A47BA1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E64BE
Deuteranopia (green-blind)
#3567B7
Tritanopia (blue-blind)
#835E7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a47ba;
/* rgb */ color: rgb(138, 71, 186);
/* oklch */ color: oklch(53.3% 0.179 308.4);
Tailwind
colors: {
  custom: {
    50: '#b07ecf',
    500: '#8a47ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a47ba;
$custom-light: #b07ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47ba",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 274.957,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53347,
    "c": 0.17858,
    "h": 308.4
  },
  "luminance": 0.13455
}

Semantic roles & 50–950 ramp

primary
#8A47BA
secondary
#AAC895
accent
#D55389
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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