#8A4FA5#8A4FA5

#8A4FA5 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.2% C 0.143 H 314.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A4FA5
RGBrgb(138, 79, 165)
HSLhsl(281, 35%, 48%)
HSVhsv(281, 52%, 65%)
CMYKcmyk(16.4%, 52.1%, 0%, 35.3%)
CIE-LABlab(43.82, 39.90, -36.66)
CIE-LCHlch(43.82, 54.18, 317.42°)
OKLaboklab(53.23% 0.0994 -0.1022)
OKLCHoklch(53.23% 0.143 314.2)
XYZxyz(20.0676, 13.7124, 37.1797)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FA5 #6AA54F
analogous
#5F4FA5 #8A4FA5 #A54F95
triadic
#8A4FA5 #A58A4F #4FA58A
tetradic
#8A4FA5 #A55F4F #6AA54F #4F95A5
square
#8A4FA5 #A55F4F #6AA54F #4F95A5
split-complementary
#8A4FA5 #95A54F #4FA55F
monochromatic
#452752 #673B7C #8A4FA5 #A675BD #C19ED1

Accessibility & contrast

On white

5.61
#8A4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FA5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FA5#FFFFFF#000000##FFFFFF
##8A4FA51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B64A8
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#885D72
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4fa5;
/* rgb */ color: rgb(138, 79, 165);
/* oklch */ color: oklch(53.2% 0.143 314.2);
Tailwind
colors: {
  custom: {
    50: '#ae82c0',
    500: '#8a4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fa5;
$custom-light: #ae82c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fa5",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 281.163,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53231,
    "c": 0.14254,
    "h": 314.2
  },
  "luminance": 0.13712
}

Semantic roles & 50–950 ramp

primary
#8A4FA5
secondary
#A0BD92
accent
#CB5D7F
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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