#8A41A2#8A41A2

#8A41A2 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.0% C 0.162 H 317.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A41A2
RGBrgb(138, 65, 162)
HSLhsl(285, 43%, 45%)
HSVhsv(285, 60%, 64%)
CMYKcmyk(14.8%, 59.9%, 0%, 36.5%)
CIE-LABlab(40.89, 46.60, -39.52)
CIE-LCHlch(40.89, 61.10, 319.70°)
OKLaboklab(51.03% 0.1184 -0.1104)
OKLCHoklch(51.03% 0.162 317)
XYZxyz(18.8922, 11.7932, 35.4566)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41A2 #59A241
analogous
#5A41A2 #8A41A2 #A24189
triadic
#8A41A2 #A28A41 #41A28A
tetradic
#8A41A2 #A25A41 #59A241 #4189A2
square
#8A41A2 #A25A41 #59A241 #4189A2
split-complementary
#8A41A2 #89A241 #41A25A
monochromatic
#401E4B #652F76 #8A41A2 #A861BF #C08CD1

Accessibility & contrast

On white

6.25
#8A41A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A41A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41A2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41A2#FFFFFF#000000##FFFFFF
##8A41A21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#89516B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a41a2;
/* rgb */ color: rgb(138, 65, 162);
/* oklch */ color: oklch(51.0% 0.162 317.0);
Tailwind
colors: {
  custom: {
    50: '#af7abe',
    500: '#8a41a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a41a2;
$custom-light: #af7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41a2",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 285.155,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51025,
    "c": 0.16188,
    "h": 317
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#8A41A2
secondary
#91BC83
accent
#D35574
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A41A2

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

Preview Lab → · Contrast checker → · Palette generator →

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