#8A4FA7#8A4FA7

#8A4FA7 is a mid, vivid purple. Relative luminance 0.138; OKLCH L 53.3% C 0.145 H 313.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A4FA7
RGBrgb(138, 79, 167)
HSLhsl(280, 36%, 48%)
HSVhsv(280, 53%, 65%)
CMYKcmyk(17.4%, 52.7%, 0%, 34.5%)
CIE-LABlab(43.92, 40.34, -37.67)
CIE-LCHlch(43.92, 55.20, 316.96°)
OKLaboklab(53.35% 0.0996 -0.1051)
OKLCHoklch(53.35% 0.145 313.4)
XYZxyz(20.2511, 13.7858, 38.1459)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FA7 #6CA74F
analogous
#5E4FA7 #8A4FA7 #A74F98
triadic
#8A4FA7 #A78A4F #4FA78A
tetradic
#8A4FA7 #A75E4F #6CA74F #4F98A7
square
#8A4FA7 #A75E4F #6CA74F #4F98A7
split-complementary
#8A4FA7 #98A74F #4FA75E
monochromatic
#452854 #683B7D #8A4FA7 #A675BE #C19FD2

Accessibility & contrast

On white

5.59
#8A4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A4FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FA7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FA7#FFFFFF#000000##FFFFFF
##8A4FA71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#4C69A5
Tritanopia (blue-blind)
#875D73
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4fa7;
/* rgb */ color: rgb(138, 79, 167);
/* oklch */ color: oklch(53.3% 0.145 313.4);
Tailwind
colors: {
  custom: {
    50: '#ae82c1',
    500: '#8a4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fa7;
$custom-light: #ae82c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fa7",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 280.227,
    "s": 35.772,
    "l": 48.235
  },
  "oklch": {
    "l": 0.53345,
    "c": 0.14482,
    "h": 313.4
  },
  "luminance": 0.13785
}

Semantic roles & 50–950 ramp

primary
#8A4FA7
secondary
#A2BE93
accent
#CC5C81
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110B12
muted
#807C81

Preview Lab

Preview with #8A4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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