#8A41A5#8A41A5

#8A41A5 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.2% C 0.165 H 315.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A41A5
RGBrgb(138, 65, 165)
HSLhsl(284, 43%, 45%)
HSVhsv(284, 61%, 65%)
CMYKcmyk(16.4%, 60.6%, 0%, 35.3%)
CIE-LABlab(41.06, 47.24, -41.03)
CIE-LCHlch(41.06, 62.57, 319.02°)
OKLaboklab(51.21% 0.1185 -0.1148)
OKLCHoklch(51.21% 0.165 315.9)
XYZxyz(19.1620, 11.9011, 36.8778)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41A5 #5CA541
analogous
#5841A5 #8A41A5 #A5418E
triadic
#8A41A5 #A58A41 #41A58A
tetradic
#8A41A5 #A55841 #5CA541 #418EA5
square
#8A41A5 #A55841 #5CA541 #418EA5
split-complementary
#8A41A5 #8EA541 #41A558
monochromatic
#411E4D #653079 #8A41A5 #A762C1 #C08ED2

Accessibility & contrast

On white

6.21
#8A41A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A41A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41A5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41A5#FFFFFF#000000##FFFFFF
##8A41A51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA8
Deuteranopia (green-blind)
#4163A3
Tritanopia (blue-blind)
#88526D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a41a5;
/* rgb */ color: rgb(138, 65, 165);
/* oklch */ color: oklch(51.2% 0.165 315.9);
Tailwind
colors: {
  custom: {
    50: '#af7ac0',
    500: '#8a41a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a41a5;
$custom-light: #af7ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41a5",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 283.8,
    "s": 43.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51207,
    "c": 0.16499,
    "h": 315.9
  },
  "luminance": 0.119
}

Semantic roles & 50–950 ramp

primary
#8A41A5
secondary
#94BE84
accent
#D35577
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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