#8A47B0#8A47B0

#8A47B0 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.7% C 0.168 H 311.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A47B0
RGBrgb(138, 71, 176)
HSLhsl(278, 43%, 48%)
HSVhsv(278, 60%, 69%)
CMYKcmyk(21.6%, 59.7%, 0%, 31%)
CIE-LABlab(42.83, 46.61, -44.73)
CIE-LCHlch(42.83, 64.60, 316.18°)
OKLaboklab(52.71% 0.1109 -0.1257)
OKLCHoklch(52.71% 0.168 311.4)
XYZxyz(20.5695, 13.0448, 42.5002)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B0 #6DB047
analogous
#5547B0 #8A47B0 #B047A1
triadic
#8A47B0 #B08A47 #47B08A
tetradic
#8A47B0 #B05547 #6DB047 #47A1B0
square
#8A47B0 #B05547 #6DB047 #47A1B0
split-complementary
#8A47B0 #A1B047 #47B055
monochromatic
#462459 #683584 #8A47B0 #A66FC5 #C19BD7

Accessibility & contrast

On white

5.82
#8A47B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A47B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B0
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B0#FFFFFF#000000##FFFFFF
##8A47B01.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B3
Deuteranopia (green-blind)
#3E66AD
Tritanopia (blue-blind)
#865A75
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47b0;
/* rgb */ color: rgb(138, 71, 176);
/* oklch */ color: oklch(52.7% 0.168 311.4);
Tailwind
colors: {
  custom: {
    50: '#af7ec8',
    500: '#8a47b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b0;
$custom-light: #af7ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b0",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 176
  },
  "hsl": {
    "h": 278.286,
    "s": 42.51,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.16762,
    "h": 311.4
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#8A47B0
secondary
#A2C390
accent
#D25683
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B0

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

Preview Lab → · Contrast checker → · Palette generator →

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