#8A4AA0#8A4AA0

#8A4AA0 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.2% C 0.145 H 316.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA0
RGBrgb(138, 74, 160)
HSLhsl(285, 37%, 46%)
HSVhsv(285, 54%, 63%)
CMYKcmyk(13.8%, 53.7%, 0%, 37.3%)
CIE-LABlab(42.52, 41.51, -35.73)
CIE-LCHlch(42.52, 54.77, 319.28°)
OKLaboklab(52.19% 0.106 -0.0995)
OKLCHoklch(52.19% 0.145 316.8)
XYZxyz(19.2742, 12.8395, 34.7139)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA0 #60A04A
analogous
#5F4AA0 #8A4AA0 #A04A8B
triadic
#8A4AA0 #A08A4A #4AA08A
tetradic
#8A4AA0 #A05F4A #60A04A #4A8BA0
square
#8A4AA0 #A05F4A #60A04A #4A8BA0
split-complementary
#8A4AA0 #8BA04A #4AA05F
monochromatic
#42234C #663776 #8A4AA0 #A76CBB #C096CE

Accessibility & contrast

On white

5.89
#8A4AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A4AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AA0
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA0#FFFFFF#000000##FFFFFF
##8A4AA01.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A3
Deuteranopia (green-blind)
#4C669E
Tritanopia (blue-blind)
#89576E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a4aa0;
/* rgb */ color: rgb(138, 74, 160);
/* oklch */ color: oklch(52.2% 0.145 316.8);
Tailwind
colors: {
  custom: {
    50: '#ae7fbc',
    500: '#8a4aa0',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa0;
$custom-light: #ae7fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa0",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 160
  },
  "hsl": {
    "h": 284.651,
    "s": 36.752,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52188,
    "c": 0.14533,
    "h": 316.8
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#8A4AA0
secondary
#97BB8B
accent
#CD5B78
background
#FAF7FB
surface
#F5EEF6
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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