#8A4EA2#8A4EA2

#8A4EA2 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 52.9% C 0.141 H 315.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A4EA2
RGBrgb(138, 78, 162)
HSLhsl(283, 35%, 47%)
HSVhsv(283, 52%, 64%)
CMYKcmyk(14.8%, 51.9%, 0%, 36.5%)
CIE-LABlab(43.45, 39.78, -35.46)
CIE-LCHlch(43.45, 53.29, 318.29°)
OKLaboklab(52.91% 0.1005 -0.0987)
OKLCHoklch(52.91% 0.141 315.5)
XYZxyz(19.7262, 13.4613, 35.7346)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4EA2 #66A24E
analogous
#604EA2 #8A4EA2 #A24E90
triadic
#8A4EA2 #A28A4E #4EA28A
tetradic
#8A4EA2 #A2604E #66A24E #4E90A2
square
#8A4EA2 #A2604E #66A24E #4E90A2
split-complementary
#8A4EA2 #90A24E #4EA260
monochromatic
#44264F #673A79 #8A4EA2 #A672BB #C09BCF

Accessibility & contrast

On white

5.69
#8A4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4EA2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4EA2#FFFFFF#000000##FFFFFF
##8A4EA21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#4E68A0
Tritanopia (blue-blind)
#895B71
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4ea2;
/* rgb */ color: rgb(138, 78, 162);
/* oklch */ color: oklch(52.9% 0.141 315.5);
Tailwind
colors: {
  custom: {
    50: '#ae82be',
    500: '#8a4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ea2;
$custom-light: #ae82be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ea2",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 282.857,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52908,
    "c": 0.14084,
    "h": 315.5
  },
  "luminance": 0.13461
}

Semantic roles & 50–950 ramp

primary
#8A4EA2
secondary
#9DBC90
accent
#CB5D7C
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #8A4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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