#8A4AB6#8A4AB6

#8A4AB6 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.170 H 309.1°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A4AB6
RGBrgb(138, 74, 182)
HSLhsl(276, 43%, 50%)
HSVhsv(276, 59%, 71%)
CMYKcmyk(24.2%, 59.3%, 0%, 28.6%)
CIE-LABlab(43.77, 46.42, -46.76)
CIE-LCHlch(43.77, 65.89, 314.79°)
OKLaboklab(53.51% 0.1071 -0.1316)
OKLCHoklch(53.51% 0.17 309.1)
XYZxyz(21.3719, 13.6786, 45.7613)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AB6 #76B64A
analogous
#544AB6 #8A4AB6 #B64AAC
triadic
#8A4AB6 #B68A4A #4AB68A
tetradic
#8A4AB6 #B6544A #76B64A #4AACB6
square
#8A4AB6 #B6544A #76B64A #4AACB6
split-complementary
#8A4AB6 #ACB64A #4AB654
monochromatic
#48265F #69388B #8A4AB6 #A676C8 #C2A1D9

Accessibility & contrast

On white

5.62
#8A4AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A4AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AB6
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AB6#FFFFFF#000000##FFFFFF
##8A4AB61.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165B9
Deuteranopia (green-blind)
#3C68B3
Tritanopia (blue-blind)
#845E79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ab6;
/* rgb */ color: rgb(138, 74, 182);
/* oklch */ color: oklch(53.5% 0.170 309.1);
Tailwind
colors: {
  custom: {
    50: '#af80cc',
    500: '#8a4ab6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ab6;
$custom-light: #af80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ab6",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 182
  },
  "hsl": {
    "h": 275.556,
    "s": 42.52,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53506,
    "c": 0.16971,
    "h": 309.1
  },
  "luminance": 0.13678
}

Semantic roles & 50–950 ramp

primary
#8A4AB6
secondary
#A9C696
accent
#D25588
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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