#8A47B9#8A47B9

#8A47B9 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.3% C 0.177 H 308.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A47B9
RGBrgb(138, 71, 185)
HSLhsl(275, 45%, 50%)
HSVhsv(275, 62%, 73%)
CMYKcmyk(25.4%, 61.6%, 0%, 27.5%)
CIE-LABlab(43.38, 48.66, -49.14)
CIE-LCHlch(43.38, 69.16, 314.72°)
OKLaboklab(53.28% 0.1108 -0.1386)
OKLCHoklch(53.28% 0.177 308.6)
XYZxyz(21.4897, 13.4129, 47.3464)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B9 #76B947
analogous
#5147B9 #8A47B9 #B947AF
triadic
#8A47B9 #B98A47 #47B98A
tetradic
#8A47B9 #B95147 #76B947 #47AFB9
square
#8A47B9 #B95147 #76B947 #47AFB9
split-complementary
#8A47B9 #AFB947 #47B951
monochromatic
#482561 #69368D #8A47B9 #A673CA #C2A0DB

Accessibility & contrast

On white

5.70
#8A47B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A47B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B9#FFFFFF#000000##FFFFFF
##8A47B91.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BD
Deuteranopia (green-blind)
#3667B6
Tritanopia (blue-blind)
#835D79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b9;
/* rgb */ color: rgb(138, 71, 185);
/* oklch */ color: oklch(53.3% 0.177 308.6);
Tailwind
colors: {
  custom: {
    50: '#b07ecf',
    500: '#8a47b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b9;
$custom-light: #b07ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b9",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 185
  },
  "hsl": {
    "h": 275.263,
    "s": 44.882,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53282,
    "c": 0.17748,
    "h": 308.6
  },
  "luminance": 0.13413
}

Semantic roles & 50–950 ramp

primary
#8A47B9
secondary
#A9C794
accent
#D55389
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A47B9

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

Preview Lab → · Contrast checker → · Palette generator →

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