#8A5F99#8A5F99

#8A5F99 is a mid, moderate purple. Relative luminance 0.159; OKLCH L 55.3% C 0.100 H 317.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A5F99
RGBrgb(138, 95, 153)
HSLhsl(284, 23%, 49%)
HSVhsv(284, 38%, 60%)
CMYKcmyk(9.8%, 37.9%, 0%, 40%)
CIE-LABlab(46.83, 28.18, -24.82)
CIE-LCHlch(46.83, 37.55, 318.62°)
OKLaboklab(55.29% 0.0733 -0.0682)
OKLCHoklch(55.29% 0.1 317.1)
XYZxyz(20.3224, 15.8881, 32.1270)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F99 #6E995F
analogous
#6D5F99 #8A5F99 #995F8B
triadic
#8A5F99 #998A5F #5F998A
tetradic
#8A5F99 #996D5F #6E995F #5F8B99
square
#8A5F99 #996D5F #6E995F #5F8B99
split-complementary
#8A5F99 #8B995F #5F996D
monochromatic
#46304D #684873 #8A5F99 #A683B2 #C1A9CA

Accessibility & contrast

On white

5.03
#8A5F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8A5F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F99
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F99#FFFFFF#000000##FFFFFF
##8A5F991.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566C9B
Deuteranopia (green-blind)
#617097
Tritanopia (blue-blind)
#8A6675
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5f99;
/* rgb */ color: rgb(138, 95, 153);
/* oklch */ color: oklch(55.3% 0.100 317.1);
Tailwind
colors: {
  custom: {
    50: '#ad8db7',
    500: '#8a5f99',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f99;
$custom-light: #ad8db7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f99",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 153
  },
  "hsl": {
    "h": 284.483,
    "s": 23.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55293,
    "c": 0.1001,
    "h": 317.1
  },
  "luminance": 0.15888
}

Semantic roles & 50–950 ramp

primary
#8A5F99
secondary
#A3B89C
accent
#C0687F
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5F99

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

Preview Lab → · Contrast checker → · Palette generator →

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