#8A4EA5#8A4EA5

#8A4EA5 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.1% C 0.144 H 314.3°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA5
RGBrgb(138, 78, 165)
HSLhsl(281, 36%, 48%)
HSVhsv(281, 53%, 65%)
CMYKcmyk(16.4%, 52.7%, 0%, 35.3%)
CIE-LABlab(43.61, 40.44, -36.99)
CIE-LCHlch(43.61, 54.81, 317.55°)
OKLaboklab(53.08% 0.1008 -0.1031)
OKLCHoklch(53.08% 0.144 314.3)
XYZxyz(19.9961, 13.5692, 37.1558)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA5 #69A54E
analogous
#5E4EA5 #8A4EA5 #A54E94
triadic
#8A4EA5 #A58A4E #4EA58A
tetradic
#8A4EA5 #A55E4E #69A54E #4E94A5
square
#8A4EA5 #A55E4E #69A54E #4E94A5
split-complementary
#8A4EA5 #94A54E #4EA55E
monochromatic
#442752 #673A7B #8A4EA5 #A673BD #C19DD1

Accessibility & contrast

On white

5.65
#8A4EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A4EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EA5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA5#FFFFFF#000000##FFFFFF
##8A4EA51.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A64A8
Deuteranopia (green-blind)
#4C69A3
Tritanopia (blue-blind)
#885C72
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ea5;
/* rgb */ color: rgb(138, 78, 165);
/* oklch */ color: oklch(53.1% 0.144 314.3);
Tailwind
colors: {
  custom: {
    50: '#ae82c0',
    500: '#8a4ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea5;
$custom-light: #ae82c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea5",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 281.379,
    "s": 35.802,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.14422,
    "h": 314.3
  },
  "luminance": 0.13569
}

Semantic roles & 50–950 ramp

primary
#8A4EA5
secondary
#9FBD91
accent
#CC5C7F
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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