#8A4FA1#8A4FA1

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

Color values

HEX#8A4FA1
RGBrgb(138, 79, 161)
HSLhsl(283, 34%, 47%)
HSVhsv(283, 51%, 63%)
CMYKcmyk(14.3%, 50.9%, 0%, 36.9%)
CIE-LABlab(43.61, 39.01, -34.61)
CIE-LCHlch(43.61, 52.15, 318.42°)
OKLaboklab(53.01% 0.0989 -0.0962)
OKLCHoklch(53.01% 0.138 315.8)
XYZxyz(19.7093, 13.5690, 35.2922)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FA1 #66A14F
analogous
#614FA1 #8A4FA1 #A14F8F
triadic
#8A4FA1 #A18A4F #4FA18A
tetradic
#8A4FA1 #A1614F #66A14F #4F8FA1
square
#8A4FA1 #A1614F #66A14F #4F8FA1
split-complementary
#8A4FA1 #8FA14F #4FA161
monochromatic
#44274F #673B78 #8A4FA1 #A673BA #C09CCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A4FA1#FFFFFF#000000##FFFFFF
##8A4FA11.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)
#3E63A4
Deuteranopia (green-blind)
#50699F
Tritanopia (blue-blind)
#895B70
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4fa1;
/* rgb */ color: rgb(138, 79, 161);
/* oklch */ color: oklch(53.0% 0.138 315.8);
Tailwind
colors: {
  custom: {
    50: '#ae82bd',
    500: '#8a4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fa1;
$custom-light: #ae82bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fa1",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 283.171,
    "s": 34.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.13801,
    "h": 315.8
  },
  "luminance": 0.13568
}

Semantic roles & 50–950 ramp

primary
#8A4FA1
secondary
#9DBB91
accent
#CA5E7C
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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