#8A4AA6#8A4AA6

#8A4AA6 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 52.5% C 0.152 H 314.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA6
RGBrgb(138, 74, 166)
HSLhsl(282, 38%, 47%)
HSVhsv(282, 55%, 65%)
CMYKcmyk(16.9%, 55.4%, 0%, 34.9%)
CIE-LABlab(42.85, 42.82, -38.79)
CIE-LCHlch(42.85, 57.77, 317.82°)
OKLaboklab(52.53% 0.1065 -0.1084)
OKLCHoklch(52.53% 0.152 314.5)
XYZxyz(19.8118, 13.0546, 37.5451)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA6 #66A64A
analogous
#5C4AA6 #8A4AA6 #A64A94
triadic
#8A4AA6 #A68A4A #4AA68A
tetradic
#8A4AA6 #A65C4A #66A64A #4A94A6
square
#8A4AA6 #A65C4A #66A64A #4A94A6
split-complementary
#8A4AA6 #94A64A #4AA65C
monochromatic
#442451 #67377C #8A4AA6 #A66FBF #C099D1

Accessibility & contrast

On white

5.82
#8A4AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A4AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AA6
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA6#FFFFFF#000000##FFFFFF
##8A4AA61.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A9
Deuteranopia (green-blind)
#4867A4
Tritanopia (blue-blind)
#885971
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4aa6;
/* rgb */ color: rgb(138, 74, 166);
/* oklch */ color: oklch(52.5% 0.152 314.5);
Tailwind
colors: {
  custom: {
    50: '#ae7fc1',
    500: '#8a4aa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa6;
$custom-light: #ae7fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa6",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 281.739,
    "s": 38.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52532,
    "c": 0.15191,
    "h": 314.5
  },
  "luminance": 0.13054
}

Semantic roles & 50–950 ramp

primary
#8A4AA6
secondary
#9DBE8E
accent
#CE5A7D
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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