#8A47B5#8A47B5

#8A47B5 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.0% C 0.173 H 309.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A47B5
RGBrgb(138, 71, 181)
HSLhsl(277, 44%, 49%)
HSVhsv(277, 61%, 71%)
CMYKcmyk(23.8%, 60.8%, 0%, 29%)
CIE-LABlab(43.13, 47.74, -47.19)
CIE-LCHlch(43.13, 67.13, 315.33°)
OKLaboklab(53.02% 0.1109 -0.1329)
OKLCHoklch(53.02% 0.173 309.8)
XYZxyz(21.0734, 13.2463, 45.1538)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B5 #72B547
analogous
#5347B5 #8A47B5 #B547A9
triadic
#8A47B5 #B58A47 #47B58A
tetradic
#8A47B5 #B55347 #72B547 #47A9B5
square
#8A47B5 #B55347 #72B547 #47A9B5
split-complementary
#8A47B5 #A9B547 #47B553
monochromatic
#47255D #683689 #8A47B5 #A672C8 #C29ED9

Accessibility & contrast

On white

5.75
#8A47B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A47B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B5
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B5#FFFFFF#000000##FFFFFF
##8A47B51.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#3A67B2
Tritanopia (blue-blind)
#845C77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b5;
/* rgb */ color: rgb(138, 71, 181);
/* oklch */ color: oklch(53.0% 0.173 309.8);
Tailwind
colors: {
  custom: {
    50: '#af7ecc',
    500: '#8a47b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b5;
$custom-light: #af7ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b5",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 181
  },
  "hsl": {
    "h": 276.545,
    "s": 43.651,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53023,
    "c": 0.1731,
    "h": 309.8
  },
  "luminance": 0.13246
}

Semantic roles & 50–950 ramp

primary
#8A47B5
secondary
#A6C593
accent
#D35486
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B5

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

Preview Lab → · Contrast checker → · Palette generator →

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