#8A4AAC#8A4AAC

#8A4AAC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.9% C 0.159 H 312.4°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A4AAC
RGBrgb(138, 74, 172)
HSLhsl(279, 40%, 48%)
HSVhsv(279, 57%, 67%)
CMYKcmyk(19.8%, 57%, 0%, 32.5%)
CIE-LABlab(43.18, 44.15, -41.81)
CIE-LCHlch(43.18, 60.80, 316.56°)
OKLaboklab(52.89% 0.1068 -0.1172)
OKLCHoklch(52.89% 0.159 312.4)
XYZxyz(20.3751, 13.2799, 40.5117)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AAC #6CAC4A
analogous
#594AAC #8A4AAC #AC4A9D
triadic
#8A4AAC #AC8A4A #4AAC8A
tetradic
#8A4AAC #AC594A #6CAC4A #4A9DAC
square
#8A4AAC #AC594A #6CAC4A #4A9DAC
split-complementary
#8A4AAC #9DAC4A #4AAC59
monochromatic
#452556 #683881 #8A4AAC #A671C2 #C19CD4

Accessibility & contrast

On white

5.74
#8A4AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A4AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AAC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AAC#FFFFFF#000000##FFFFFF
##8A4AAC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D63AF
Deuteranopia (green-blind)
#4467AA
Tritanopia (blue-blind)
#865B74
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4aac;
/* rgb */ color: rgb(138, 74, 172);
/* oklch */ color: oklch(52.9% 0.159 312.4);
Tailwind
colors: {
  custom: {
    50: '#af7fc5',
    500: '#8a4aac',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aac;
$custom-light: #af7fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aac",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 172
  },
  "hsl": {
    "h": 279.184,
    "s": 39.837,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52888,
    "c": 0.15856,
    "h": 312.4
  },
  "luminance": 0.13279
}

Semantic roles & 50–950 ramp

primary
#8A4AAC
secondary
#A2C191
accent
#D05882
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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