#8A4AA4#8A4AA4

#8A4AA4 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.4% C 0.150 H 315.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA4
RGBrgb(138, 74, 164)
HSLhsl(283, 38%, 47%)
HSVhsv(283, 55%, 64%)
CMYKcmyk(15.9%, 54.9%, 0%, 35.7%)
CIE-LABlab(42.74, 42.38, -37.77)
CIE-LCHlch(42.74, 56.77, 318.29°)
OKLaboklab(52.42% 0.1063 -0.1054)
OKLCHoklch(52.42% 0.15 315.2)
XYZxyz(19.6298, 12.9818, 36.5864)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA4 #64A44A
analogous
#5D4AA4 #8A4AA4 #A44A91
triadic
#8A4AA4 #A48A4A #4AA48A
tetradic
#8A4AA4 #A45D4A #64A44A #4A91A4
square
#8A4AA4 #A45D4A #64A44A #4A91A4
split-complementary
#8A4AA4 #91A44A #4AA45D
monochromatic
#432450 #67377A #8A4AA4 #A66EBD #C098D0

Accessibility & contrast

On white

5.84
#8A4AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A4AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AA4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA4#FFFFFF#000000##FFFFFF
##8A4AA41.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A7
Deuteranopia (green-blind)
#4A67A2
Tritanopia (blue-blind)
#885870
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4aa4;
/* rgb */ color: rgb(138, 74, 164);
/* oklch */ color: oklch(52.4% 0.150 315.2);
Tailwind
colors: {
  custom: {
    50: '#ae7fbf',
    500: '#8a4aa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa4;
$custom-light: #ae7fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa4",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 282.667,
    "s": 37.815,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52416,
    "c": 0.14971,
    "h": 315.2
  },
  "luminance": 0.12981
}

Semantic roles & 50–950 ramp

primary
#8A4AA4
secondary
#9BBD8D
accent
#CE5A7B
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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