#8A47AF#8A47AF

#8A47AF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.167 H 311.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A47AF
RGBrgb(138, 71, 175)
HSLhsl(279, 42%, 48%)
HSVhsv(279, 59%, 69%)
CMYKcmyk(21.1%, 59.4%, 0%, 31.4%)
CIE-LABlab(42.77, 46.39, -44.24)
CIE-LCHlch(42.77, 64.10, 316.36°)
OKLaboklab(52.64% 0.1109 -0.1242)
OKLCHoklch(52.64% 0.167 311.7)
XYZxyz(20.4709, 13.0054, 41.9810)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47AF #6CAF47
analogous
#5647AF #8A47AF #AF47A0
triadic
#8A47AF #AF8A47 #47AF8A
tetradic
#8A47AF #AF5647 #6CAF47 #47A0AF
square
#8A47AF #AF5647 #6CAF47 #47A0AF
split-complementary
#8A47AF #A0AF47 #47AF56
monochromatic
#452458 #683583 #8A47AF #A66FC4 #C19AD6

Accessibility & contrast

On white

5.83
#8A47AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A47AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47AF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47AF#FFFFFF#000000##FFFFFF
##8A47AF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#3F66AC
Tritanopia (blue-blind)
#865A74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47af;
/* rgb */ color: rgb(138, 71, 175);
/* oklch */ color: oklch(52.6% 0.167 311.7);
Tailwind
colors: {
  custom: {
    50: '#af7ec7',
    500: '#8a47af',
    950: '#000000',
  },
}
SCSS
$custom: #8a47af;
$custom-light: #af7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47af",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 278.654,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52644,
    "c": 0.16652,
    "h": 311.7
  },
  "luminance": 0.13005
}

Semantic roles & 50–950 ramp

primary
#8A47AF
secondary
#A2C28F
accent
#D25682
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47AF

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

Preview Lab → · Contrast checker → · Palette generator →

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