#8A4EA7#8A4EA7

#8A4EA7 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.2% C 0.146 H 313.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA7
RGBrgb(138, 78, 167)
HSLhsl(280, 36%, 48%)
HSVhsv(280, 53%, 65%)
CMYKcmyk(17.4%, 53.3%, 0%, 34.5%)
CIE-LABlab(43.72, 40.89, -38.00)
CIE-LCHlch(43.72, 55.82, 317.09°)
OKLaboklab(53.19% 0.101 -0.1061)
OKLCHoklch(53.19% 0.146 313.6)
XYZxyz(20.1795, 13.6426, 38.1220)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA7 #6BA74E
analogous
#5D4EA7 #8A4EA7 #A74E98
triadic
#8A4EA7 #A78A4E #4EA78A
tetradic
#8A4EA7 #A75D4E #6BA74E #4E98A7
square
#8A4EA7 #A75D4E #6BA74E #4E98A7
split-complementary
#8A4EA7 #98A74E #4EA75D
monochromatic
#452754 #683B7D #8A4EA7 #A674BE #C19ED2

Accessibility & contrast

On white

5.63
#8A4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A4EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EA7
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA7#FFFFFF#000000##FFFFFF
##8A4EA71.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AA
Deuteranopia (green-blind)
#4B69A5
Tritanopia (blue-blind)
#875C73
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ea7;
/* rgb */ color: rgb(138, 78, 167);
/* oklch */ color: oklch(53.2% 0.146 313.6);
Tailwind
colors: {
  custom: {
    50: '#ae82c1',
    500: '#8a4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea7;
$custom-light: #ae82c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea7",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 280.449,
    "s": 36.327,
    "l": 48.039
  },
  "oklch": {
    "l": 0.53191,
    "c": 0.14648,
    "h": 313.6
  },
  "luminance": 0.13642
}

Semantic roles & 50–950 ramp

primary
#8A4EA7
secondary
#A1BE92
accent
#CC5B80
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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