#8A4AA2#8A4AA2

#8A4AA2 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.3% C 0.148 H 316.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A4AA2
RGBrgb(138, 74, 162)
HSLhsl(284, 37%, 46%)
HSVhsv(284, 54%, 64%)
CMYKcmyk(14.8%, 54.3%, 0%, 36.5%)
CIE-LABlab(42.63, 41.94, -36.76)
CIE-LCHlch(42.63, 55.77, 318.77°)
OKLaboklab(52.3% 0.1062 -0.1024)
OKLCHoklch(52.3% 0.148 316)
XYZxyz(19.4506, 12.9101, 35.6427)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4AA2 #62A24A
analogous
#5E4AA2 #8A4AA2 #A24A8E
triadic
#8A4AA2 #A28A4A #4AA28A
tetradic
#8A4AA2 #A25E4A #62A24A #4A8EA2
square
#8A4AA2 #A25E4A #62A24A #4A8EA2
split-complementary
#8A4AA2 #8EA24A #4AA25E
monochromatic
#42244E #663778 #8A4AA2 #A76DBC #C097CF

Accessibility & contrast

On white

5.86
#8A4AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A4AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4AA2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4AA2#FFFFFF#000000##FFFFFF
##8A4AA21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4B67A0
Tritanopia (blue-blind)
#89586F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4aa2;
/* rgb */ color: rgb(138, 74, 162);
/* oklch */ color: oklch(52.3% 0.148 316.0);
Tailwind
colors: {
  custom: {
    50: '#ae7fbe',
    500: '#8a4aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4aa2;
$custom-light: #ae7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4aa2",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 283.636,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52301,
    "c": 0.14752,
    "h": 316
  },
  "luminance": 0.12909
}

Semantic roles & 50–950 ramp

primary
#8A4AA2
secondary
#99BC8C
accent
#CD5B7A
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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