#8A41A3#8A41A3

#8A41A3 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.1% C 0.163 H 316.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A41A3
RGBrgb(138, 65, 163)
HSLhsl(285, 43%, 45%)
HSVhsv(285, 60%, 64%)
CMYKcmyk(15.3%, 60.1%, 0%, 36.1%)
CIE-LABlab(40.94, 46.81, -40.02)
CIE-LCHlch(40.94, 61.59, 319.47°)
OKLaboklab(51.09% 0.1184 -0.1119)
OKLCHoklch(51.09% 0.163 316.6)
XYZxyz(18.9814, 11.8289, 35.9266)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41A3 #5AA341
analogous
#5941A3 #8A41A3 #A3418B
triadic
#8A41A3 #A38A41 #41A38A
tetradic
#8A41A3 #A35941 #5AA341 #418BA3
square
#8A41A3 #A35941 #5AA341 #418BA3
split-complementary
#8A41A3 #8BA341 #41A359
monochromatic
#401E4B #653077 #8A41A3 #A861C0 #C08DD1

Accessibility & contrast

On white

6.24
#8A41A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A41A3
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41A3#FFFFFF#000000##FFFFFF
##8A41A31.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA6
Deuteranopia (green-blind)
#4363A1
Tritanopia (blue-blind)
#89526C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a41a3;
/* rgb */ color: rgb(138, 65, 163);
/* oklch */ color: oklch(51.1% 0.163 316.6);
Tailwind
colors: {
  custom: {
    50: '#af7abf',
    500: '#8a41a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a41a3;
$custom-light: #af7abf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41a3",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 284.694,
    "s": 42.982,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51086,
    "c": 0.16291,
    "h": 316.6
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#8A41A3
secondary
#92BD83
accent
#D35575
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A41A3

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

Preview Lab → · Contrast checker → · Palette generator →

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