#8A5F9A#8A5F9A

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

Color values

HEX#8A5F9A
RGBrgb(138, 95, 154)
HSLhsl(284, 24%, 49%)
HSVhsv(284, 38%, 60%)
CMYKcmyk(10.4%, 38.3%, 0%, 39.6%)
CIE-LABlab(46.87, 28.39, -25.35)
CIE-LCHlch(46.87, 38.06, 318.24°)
OKLaboklab(55.34% 0.0735 -0.0697)
OKLCHoklch(55.34% 0.101 316.5)
XYZxyz(20.4053, 15.9213, 32.5638)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5F9A #6F9A5F
analogous
#6D5F9A #8A5F9A #9A5F8D
triadic
#8A5F9A #9A8A5F #5F9A8A
tetradic
#8A5F9A #9A6D5F #6F9A5F #5F8D9A
square
#8A5F9A #9A6D5F #6F9A5F #5F8D9A
split-complementary
#8A5F9A #8D9A5F #5F9A6D
monochromatic
#46304E #684874 #8A5F9A #A683B3 #C1A9CA

Accessibility & contrast

On white

5.02
#8A5F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5F9A
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5F9A#FFFFFF#000000##FFFFFF
##8A5F9A1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#566C9C
Deuteranopia (green-blind)
#607098
Tritanopia (blue-blind)
#8A6775
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5f9a;
/* rgb */ color: rgb(138, 95, 154);
/* oklch */ color: oklch(55.3% 0.101 316.5);
Tailwind
colors: {
  custom: {
    50: '#ad8db8',
    500: '#8a5f9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a5f9a;
$custom-light: #ad8db8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5f9a",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 154
  },
  "hsl": {
    "h": 283.729,
    "s": 23.695,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5534,
    "c": 0.10129,
    "h": 316.5
  },
  "luminance": 0.15921
}

Semantic roles & 50–950 ramp

primary
#8A5F9A
secondary
#A4B89C
accent
#C06880
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C11
muted
#7F7D80

Preview Lab

Preview with #8A5F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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