#8A4AA5#8A4AA5

#8A4AA5 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.5% C 0.151 H 314.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA5
RGBrgb(138, 74, 165)
HSLhsl(282, 38%, 47%)
HSVhsv(282, 55%, 65%)
CMYKcmyk(16.4%, 55.2%, 0%, 35.3%)
CIE-LABlab(42.79, 42.60, -38.28)
CIE-LCHlch(42.79, 57.27, 318.05°)
OKLaboklab(52.47% 0.1064 -0.1069)
OKLCHoklch(52.47% 0.151 314.9)
XYZxyz(19.7205, 13.0180, 37.0639)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA5 #65A54A
analogous
#5D4AA5 #8A4AA5 #A54A93
triadic
#8A4AA5 #A58A4A #4AA58A
tetradic
#8A4AA5 #A55D4A #65A54A #4A93A5
square
#8A4AA5 #A55D4A #65A54A #4A93A5
split-complementary
#8A4AA5 #93A54A #4AA55D
monochromatic
#432450 #67377B #8A4AA5 #A66EBE #C098D1

Accessibility & contrast

On white

5.83
#8A4AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4AA5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA5#FFFFFF#000000##FFFFFF
##8A4AA51.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A8
Deuteranopia (green-blind)
#4967A3
Tritanopia (blue-blind)
#885970
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4aa5;
/* rgb */ color: rgb(138, 74, 165);
/* oklch */ color: oklch(52.5% 0.151 314.9);
Tailwind
colors: {
  custom: {
    50: '#ae7fc0',
    500: '#8a4aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa5;
$custom-light: #ae7fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa5",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 282.198,
    "s": 38.075,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52474,
    "c": 0.15081,
    "h": 314.9
  },
  "luminance": 0.13017
}

Semantic roles & 50–950 ramp

primary
#8A4AA5
secondary
#9CBD8E
accent
#CE5A7C
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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