#8A5099#8A5099

#8A5099 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.7% C 0.127 H 319.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A5099
RGBrgb(138, 80, 153)
HSLhsl(288, 31%, 46%)
HSVhsv(288, 48%, 60%)
CMYKcmyk(9.8%, 47.7%, 0%, 40%)
CIE-LABlab(43.42, 36.74, -30.13)
CIE-LCHlch(43.42, 47.51, 320.64°)
OKLaboklab(52.74% 0.0963 -0.0833)
OKLCHoklch(52.74% 0.127 319.1)
XYZxyz(19.0989, 13.4412, 31.7192)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5099 #5F9950
analogous
#655099 #8A5099 #995083
triadic
#8A5099 #998A50 #50998A
tetradic
#8A5099 #996550 #5F9950 #508399
square
#8A5099 #996550 #5F9950 #508399
split-complementary
#8A5099 #839950 #509965
monochromatic
#422649 #663B71 #8A5099 #A771B5 #C099CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5099#FFFFFF#000000##FFFFFF
##8A50991.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)
#44639C
Deuteranopia (green-blind)
#556997
Tritanopia (blue-blind)
#8A5A6D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a5099;
/* rgb */ color: rgb(138, 80, 153);
/* oklch */ color: oklch(52.7% 0.127 319.1);
Tailwind
colors: {
  custom: {
    50: '#ae83b7',
    500: '#8a5099',
    950: '#000000',
  },
}
SCSS
$custom: #8a5099;
$custom-light: #ae83b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5099",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 153
  },
  "hsl": {
    "h": 287.671,
    "s": 31.33,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52738,
    "c": 0.12733,
    "h": 319.1
  },
  "luminance": 0.13441
}

Semantic roles & 50–950 ramp

primary
#8A5099
secondary
#96B78E
accent
#C86075
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5099

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

Preview Lab → · Contrast checker → · Palette generator →

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