#8A41A4#8A41A4

#8A41A4 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.1% C 0.164 H 316.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A41A4
RGBrgb(138, 65, 164)
HSLhsl(284, 43%, 45%)
HSVhsv(284, 60%, 64%)
CMYKcmyk(15.9%, 60.4%, 0%, 35.7%)
CIE-LABlab(41.00, 47.03, -40.53)
CIE-LCHlch(41.00, 62.08, 319.24°)
OKLaboklab(51.15% 0.1184 -0.1134)
OKLCHoklch(51.15% 0.164 316.2)
XYZxyz(19.0714, 11.8649, 36.4003)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41A4 #5BA441
analogous
#5841A4 #8A41A4 #A4418D
triadic
#8A41A4 #A48A41 #41A48A
tetradic
#8A41A4 #A45841 #5BA441 #418DA4
square
#8A41A4 #A45841 #5BA441 #418DA4
split-complementary
#8A41A4 #8DA441 #41A458
monochromatic
#401E4C #653078 #8A41A4 #A862C1 #C08DD2

Accessibility & contrast

On white

6.23
#8A41A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A41A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41A4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41A4#FFFFFF#000000##FFFFFF
##8A41A41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA7
Deuteranopia (green-blind)
#4263A2
Tritanopia (blue-blind)
#89526C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a41a4;
/* rgb */ color: rgb(138, 65, 164);
/* oklch */ color: oklch(51.1% 0.164 316.2);
Tailwind
colors: {
  custom: {
    50: '#af7abf',
    500: '#8a41a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a41a4;
$custom-light: #af7abf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41a4",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 164
  },
  "hsl": {
    "h": 284.242,
    "s": 43.231,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.16395,
    "h": 316.2
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#8A41A4
secondary
#93BD84
accent
#D35576
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A41A4

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

Preview Lab → · Contrast checker → · Palette generator →

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