#8A5F8B#8A5F8B

#8A5F8B is a mid, moderate purple. Relative luminance 0.155; OKLCH L 54.7% C 0.084 H 325.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A5F8B
RGBrgb(138, 95, 139)
HSLhsl(299, 19%, 46%)
HSVhsv(299, 32%, 55%)
CMYKcmyk(0.7%, 31.7%, 0%, 45.5%)
CIE-LABlab(46.25, 25.24, -17.37)
CIE-LCHlch(46.25, 30.64, 325.45°)
OKLaboklab(54.66% 0.0695 -0.0471)
OKLCHoklch(54.66% 0.084 325.9)
XYZxyz(19.2332, 15.4524, 26.3906)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F8B #608B5F
analogous
#745F8B #8A5F8B #8B5F76
triadic
#8A5F8B #8B8A5F #5F8B8A
tetradic
#8A5F8B #8B745F #608B5F #5F768B
square
#8A5F8B #8B745F #608B5F #5F768B
split-complementary
#8A5F8B #768B5F #5F8B74
monochromatic
#422D42 #664667 #8A5F8B #A77FA8 #C0A4C1

Accessibility & contrast

On white

5.13
#8A5F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A5F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5F8B
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F8B#FFFFFF#000000##FFFFFF
##8A5F8B1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6A8D
Deuteranopia (green-blind)
#666F89
Tritanopia (blue-blind)
#8C636F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5f8b;
/* rgb */ color: rgb(138, 95, 139);
/* oklch */ color: oklch(54.7% 0.084 325.9);
Tailwind
colors: {
  custom: {
    50: '#ad8dad',
    500: '#8a5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f8b;
$custom-light: #ad8dad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f8b",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 298.636,
    "s": 18.803,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.08398,
    "h": 325.9
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#8A5F8B
secondary
#97AF97
accent
#BB6C6E
background
#FAF8FA
surface
#F4F0F4
border
#CECBCE
text
#100C10
muted
#7F7D7F

Preview Lab

Preview with #8A5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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