#8A47B3#8A47B3

#8A47B3 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.9% C 0.171 H 310.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A47B3
RGBrgb(138, 71, 179)
HSLhsl(277, 43%, 49%)
HSVhsv(277, 60%, 70%)
CMYKcmyk(22.9%, 60.3%, 0%, 29.8%)
CIE-LABlab(43.01, 47.29, -46.21)
CIE-LCHlch(43.01, 66.12, 315.66°)
OKLaboklab(52.9% 0.1109 -0.13)
OKLCHoklch(52.9% 0.171 310.5)
XYZxyz(20.8696, 13.1648, 44.0808)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B3 #70B347
analogous
#5447B3 #8A47B3 #B347A6
triadic
#8A47B3 #B38A47 #47B38A
tetradic
#8A47B3 #B35447 #70B347 #47A6B3
square
#8A47B3 #B35447 #70B347 #47A6B3
split-complementary
#8A47B3 #A6B347 #47B354
monochromatic
#46245B #683687 #8A47B3 #A671C7 #C19CD8

Accessibility & contrast

On white

5.78
#8A47B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A47B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B3#FFFFFF#000000##FFFFFF
##8A47B31.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B6
Deuteranopia (green-blind)
#3C67B0
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b3;
/* rgb */ color: rgb(138, 71, 179);
/* oklch */ color: oklch(52.9% 0.171 310.5);
Tailwind
colors: {
  custom: {
    50: '#af7eca',
    500: '#8a47b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b3;
$custom-light: #af7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b3",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 179
  },
  "hsl": {
    "h": 277.222,
    "s": 43.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52896,
    "c": 0.1709,
    "h": 310.5
  },
  "luminance": 0.13164
}

Semantic roles & 50–950 ramp

primary
#8A47B3
secondary
#A5C491
accent
#D35585
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B3

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

Preview Lab → · Contrast checker → · Palette generator →

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