#8A47BB#8A47BB

#8A47BB is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.4% C 0.180 H 308.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A47BB
RGBrgb(138, 71, 187)
HSLhsl(275, 46%, 51%)
HSVhsv(275, 62%, 73%)
CMYKcmyk(26.2%, 62%, 0%, 26.7%)
CIE-LABlab(43.50, 49.12, -50.11)
CIE-LCHlch(43.50, 70.17, 314.43°)
OKLaboklab(53.41% 0.1108 -0.1415)
OKLCHoklch(53.41% 0.18 308.1)
XYZxyz(21.7023, 13.4979, 48.4662)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47BB #78BB47
analogous
#5047BB #8A47BB #BB47B2
triadic
#8A47BB #BB8A47 #47BB8A
tetradic
#8A47BB #BB5047 #78BB47 #47B2BB
square
#8A47BB #BB5047 #78BB47 #47B2BB
split-complementary
#8A47BB #B2BB47 #47BB50
monochromatic
#492563 #693590 #8A47BB #A674CC #C3A0DC

Accessibility & contrast

On white

5.68
#8A47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47BB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47BB#FFFFFF#000000##FFFFFF
##8A47BB1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BF
Deuteranopia (green-blind)
#3468B8
Tritanopia (blue-blind)
#835E7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a47bb;
/* rgb */ color: rgb(138, 71, 187);
/* oklch */ color: oklch(53.4% 0.180 308.1);
Tailwind
colors: {
  custom: {
    50: '#b07ed0',
    500: '#8a47bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a47bb;
$custom-light: #b07ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47bb",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 274.655,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53413,
    "c": 0.17968,
    "h": 308.1
  },
  "luminance": 0.13498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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