#8A4E9D#8A4E9D

#8A4E9D is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.6% C 0.135 H 317.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A4E9D
RGBrgb(138, 78, 157)
HSLhsl(286, 34%, 46%)
HSVhsv(286, 50%, 62%)
CMYKcmyk(12.1%, 50.3%, 0%, 38.4%)
CIE-LABlab(43.19, 38.70, -32.88)
CIE-LCHlch(43.19, 50.78, 319.64°)
OKLaboklab(52.63% 0.0999 -0.0912)
OKLCHoklch(52.63% 0.135 317.6)
XYZxyz(19.2906, 13.2870, 33.4402)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E9D #619D4E
analogous
#624E9D #8A4E9D #9D4E88
triadic
#8A4E9D #9D8A4E #4E9D8A
tetradic
#8A4E9D #9D624E #619D4E #4E889D
square
#8A4E9D #9D624E #619D4E #4E889D
split-complementary
#8A4E9D #889D4E #4E9D62
monochromatic
#42254B #663A74 #8A4E9D #A770B8 #C099CC

Accessibility & contrast

On white

5.74
#8A4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A4E9D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E9D#FFFFFF#000000##FFFFFF
##8A4E9D1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F62A0
Deuteranopia (green-blind)
#51689B
Tritanopia (blue-blind)
#8A596E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4e9d;
/* rgb */ color: rgb(138, 78, 157);
/* oklch */ color: oklch(52.6% 0.135 317.6);
Tailwind
colors: {
  custom: {
    50: '#ae82ba',
    500: '#8a4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e9d;
$custom-light: #ae82ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e9d",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 285.57,
    "s": 33.617,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.13526,
    "h": 317.6
  },
  "luminance": 0.13286
}

Semantic roles & 50–950 ramp

primary
#8A4E9D
secondary
#98B98E
accent
#CA5E78
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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