#8A47B7#8A47B7

#8A47B7 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.2% C 0.175 H 309.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A47B7
RGBrgb(138, 71, 183)
HSLhsl(276, 44%, 50%)
HSVhsv(276, 61%, 72%)
CMYKcmyk(24.6%, 61.2%, 0%, 28.2%)
CIE-LABlab(43.25, 48.20, -48.17)
CIE-LCHlch(43.25, 68.14, 315.02°)
OKLaboklab(53.15% 0.1109 -0.1358)
OKLCHoklch(53.15% 0.175 309.2)
XYZxyz(21.2800, 13.3290, 46.2423)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B7 #74B747
analogous
#5247B7 #8A47B7 #B747AC
triadic
#8A47B7 #B78A47 #47B78A
tetradic
#8A47B7 #B75247 #74B747 #47ACB7
square
#8A47B7 #B75247 #74B747 #47ACB7
split-complementary
#8A47B7 #ACB747 #47B752
monochromatic
#47255F #69368B #8A47B7 #A673C9 #C29FDA

Accessibility & contrast

On white

5.73
#8A47B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A47B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B7#FFFFFF#000000##FFFFFF
##8A47B71.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663BB
Deuteranopia (green-blind)
#3867B4
Tritanopia (blue-blind)
#845D78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b7;
/* rgb */ color: rgb(138, 71, 183);
/* oklch */ color: oklch(53.2% 0.175 309.2);
Tailwind
colors: {
  custom: {
    50: '#af7ecd',
    500: '#8a47b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b7;
$custom-light: #af7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b7",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 183
  },
  "hsl": {
    "h": 275.893,
    "s": 44.094,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53152,
    "c": 0.17529,
    "h": 309.2
  },
  "luminance": 0.13329
}

Semantic roles & 50–950 ramp

primary
#8A47B7
secondary
#A8C694
accent
#D45487
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B7

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

Preview Lab → · Contrast checker → · Palette generator →

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