#8A41A7#8A41A7

#8A41A7 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.3% C 0.167 H 315.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A41A7
RGBrgb(138, 65, 167)
HSLhsl(283, 44%, 45%)
HSVhsv(283, 61%, 65%)
CMYKcmyk(17.4%, 61.1%, 0%, 34.5%)
CIE-LABlab(41.18, 47.67, -42.04)
CIE-LCHlch(41.18, 63.56, 318.59°)
OKLaboklab(51.33% 0.1185 -0.1178)
OKLCHoklch(51.33% 0.167 315.2)
XYZxyz(19.3455, 11.9745, 37.8440)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41A7 #5EA741
analogous
#5741A7 #8A41A7 #A74191
triadic
#8A41A7 #A78A41 #41A78A
tetradic
#8A41A7 #A75741 #5EA741 #4191A7
square
#8A41A7 #A75741 #5EA741 #4191A7
split-complementary
#8A41A7 #91A741 #41A757
monochromatic
#411F4F #66307B #8A41A7 #A763C2 #C08FD3

Accessibility & contrast

On white

6.19
#8A41A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A41A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41A7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41A7#FFFFFF#000000##FFFFFF
##8A41A71.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#4063A4
Tritanopia (blue-blind)
#88536E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a41a7;
/* rgb */ color: rgb(138, 65, 167);
/* oklch */ color: oklch(51.3% 0.167 315.2);
Tailwind
colors: {
  custom: {
    50: '#af7ac2',
    500: '#8a41a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a41a7;
$custom-light: #af7ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41a7",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 167
  },
  "hsl": {
    "h": 282.941,
    "s": 43.966,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.16708,
    "h": 315.2
  },
  "luminance": 0.11974
}

Semantic roles & 50–950 ramp

primary
#8A41A7
secondary
#96BF85
accent
#D45478
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A41A7

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

Preview Lab → · Contrast checker → · Palette generator →

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