#8A47B4#8A47B4

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

Color values

HEX#8A47B4
RGBrgb(138, 71, 180)
HSLhsl(277, 43%, 49%)
HSVhsv(277, 61%, 71%)
CMYKcmyk(23.3%, 60.6%, 0%, 29.4%)
CIE-LABlab(43.07, 47.52, -46.70)
CIE-LCHlch(43.07, 66.63, 315.49°)
OKLaboklab(52.96% 0.1109 -0.1315)
OKLCHoklch(52.96% 0.172 310.2)
XYZxyz(20.9711, 13.2054, 44.6153)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B4 #71B447
analogous
#5447B4 #8A47B4 #B447A8
triadic
#8A47B4 #B48A47 #47B48A
tetradic
#8A47B4 #B45447 #71B447 #47A8B4
square
#8A47B4 #B45447 #71B447 #47A8B4
split-complementary
#8A47B4 #A8B447 #47B454
monochromatic
#47245C #683688 #8A47B4 #A671C7 #C29DD8

Accessibility & contrast

On white

5.77
#8A47B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A47B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B4#FFFFFF#000000##FFFFFF
##8A47B41.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B7
Deuteranopia (green-blind)
#3B67B1
Tritanopia (blue-blind)
#855C77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a47b4;
/* rgb */ color: rgb(138, 71, 180);
/* oklch */ color: oklch(53.0% 0.172 310.2);
Tailwind
colors: {
  custom: {
    50: '#af7ecb',
    500: '#8a47b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b4;
$custom-light: #af7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b4",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 180
  },
  "hsl": {
    "h": 276.881,
    "s": 43.426,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.172,
    "h": 310.2
  },
  "luminance": 0.13205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A47B4

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

Preview Lab → · Contrast checker → · Palette generator →

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