#8A5199#8A5199

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

Color values

HEX#8A5199
RGBrgb(138, 81, 153)
HSLhsl(288, 31%, 46%)
HSVhsv(288, 47%, 60%)
CMYKcmyk(9.8%, 47.1%, 0%, 40%)
CIE-LABlab(43.64, 36.18, -29.79)
CIE-LCHlch(43.64, 46.87, 320.53°)
OKLaboklab(52.9% 0.0948 -0.0823)
OKLCHoklch(52.9% 0.126 319)
XYZxyz(19.1727, 13.5887, 31.7438)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5199 #609951
analogous
#665199 #8A5199 #995184
triadic
#8A5199 #998A51 #51998A
tetradic
#8A5199 #996651 #609951 #518499
square
#8A5199 #996651 #609951 #518499
split-complementary
#8A5199 #849951 #519966
monochromatic
#422749 #663C71 #8A5199 #A773B5 #C09BCA

Accessibility & contrast

On white

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

On black

3.72
#8A5199 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A5199#FFFFFF#000000##FFFFFF
##8A51991.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45639C
Deuteranopia (green-blind)
#556997
Tritanopia (blue-blind)
#8A5B6E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a5199;
/* rgb */ color: rgb(138, 81, 153);
/* oklch */ color: oklch(52.9% 0.126 319.0);
Tailwind
colors: {
  custom: {
    50: '#ae83b7',
    500: '#8a5199',
    950: '#000000',
  },
}
SCSS
$custom: #8a5199;
$custom-light: #ae83b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5199",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 287.5,
    "s": 30.769,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52899,
    "c": 0.12556,
    "h": 319
  },
  "luminance": 0.13588
}

Semantic roles & 50–950 ramp

primary
#8A5199
secondary
#97B78F
accent
#C76176
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5199

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

Preview Lab → · Contrast checker → · Palette generator →

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