#8A5C99#8A5C99

#8A5C99 is a mid, moderate purple. Relative luminance 0.154; OKLCH L 54.8% C 0.106 H 317.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A5C99
RGBrgb(138, 92, 153)
HSLhsl(285, 25%, 48%)
HSVhsv(285, 40%, 60%)
CMYKcmyk(9.8%, 39.9%, 0%, 40%)
CIE-LABlab(46.12, 29.92, -25.92)
CIE-LCHlch(46.12, 39.58, 319.09°)
OKLaboklab(54.76% 0.078 -0.0713)
OKLCHoklch(54.76% 0.106 317.6)
XYZxyz(20.0573, 15.3580, 32.0386)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5C99 #6B995C
analogous
#6B5C99 #8A5C99 #995C89
triadic
#8A5C99 #998A5C #5C998A
tetradic
#8A5C99 #996B5C #6B995C #5C8999
square
#8A5C99 #996B5C #6B995C #5C8999
split-complementary
#8A5C99 #89995C #5C996B
monochromatic
#452E4D #684573 #8A5C99 #A680B2 #C1A6C9

Accessibility & contrast

On white

5.16
#8A5C99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A5C99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5C99
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5C99#FFFFFF#000000##FFFFFF
##8A5C991.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536A9B
Deuteranopia (green-blind)
#5E6F97
Tritanopia (blue-blind)
#8A6473
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a5c99;
/* rgb */ color: rgb(138, 92, 153);
/* oklch */ color: oklch(54.8% 0.106 317.6);
Tailwind
colors: {
  custom: {
    50: '#ad8bb7',
    500: '#8a5c99',
    950: '#000000',
  },
}
SCSS
$custom: #8a5c99;
$custom-light: #ad8bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5c99",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 153
  },
  "hsl": {
    "h": 285.246,
    "s": 24.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5476,
    "c": 0.10564,
    "h": 317.6
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

primary
#8A5C99
secondary
#A1B799
accent
#C1667D
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5C99

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

Preview Lab → · Contrast checker → · Palette generator →

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