#8A4E9E#8A4E9E

#8A4E9E is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.7% C 0.136 H 317.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A4E9E
RGBrgb(138, 78, 158)
HSLhsl(285, 34%, 46%)
HSVhsv(285, 51%, 62%)
CMYKcmyk(12.7%, 50.6%, 0%, 38%)
CIE-LABlab(43.24, 38.91, -33.40)
CIE-LCHlch(43.24, 51.28, 319.36°)
OKLaboklab(52.69% 0.1 -0.0927)
OKLCHoklch(52.69% 0.136 317.2)
XYZxyz(19.3763, 13.3213, 33.8917)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E9E #629E4E
analogous
#624E9E #8A4E9E #9E4E8A
triadic
#8A4E9E #9E8A4E #4E9E8A
tetradic
#8A4E9E #9E624E #629E4E #4E8A9E
square
#8A4E9E #9E624E #629E4E #4E8A9E
split-complementary
#8A4E9E #8A9E4E #4E9E62
monochromatic
#42264C #663A75 #8A4E9E #A771B9 #C09ACD

Accessibility & contrast

On white

5.73
#8A4E9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A4E9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E9E
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E9E#FFFFFF#000000##FFFFFF
##8A4E9E1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A1
Deuteranopia (green-blind)
#50689C
Tritanopia (blue-blind)
#895A6F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4e9e;
/* rgb */ color: rgb(138, 78, 158);
/* oklch */ color: oklch(52.7% 0.136 317.2);
Tailwind
colors: {
  custom: {
    50: '#ae82bb',
    500: '#8a4e9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e9e;
$custom-light: #ae82bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e9e",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 158
  },
  "hsl": {
    "h": 285,
    "s": 33.898,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52688,
    "c": 0.13636,
    "h": 317.2
  },
  "luminance": 0.13321
}

Semantic roles & 50–950 ramp

primary
#8A4E9E
secondary
#99BA8E
accent
#CA5E79
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #8A4E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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