#9D5AAA#9D5AAA

#9D5AAA is a mid, vivid purple. Relative luminance 0.174; OKLCH L 57.5% C 0.139 H 320.9°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9D5AAA
RGBrgb(157, 90, 170)
HSLhsl(290, 32%, 51%)
HSVhsv(290, 47%, 67%)
CMYKcmyk(7.6%, 47.1%, 0%, 33.3%)
CIE-LABlab(48.74, 40.52, -31.70)
CIE-LCHlch(48.74, 51.45, 321.96°)
OKLaboklab(57.48% 0.1078 -0.0875)
OKLCHoklch(57.48% 0.139 320.9)
XYZxyz(24.8156, 17.3837, 40.0706)
Luminance0.1738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AAA #67AA5A
analogous
#755AAA #9D5AAA #AA5A8F
triadic
#9D5AAA #AA9D5A #5AAA9D
tetradic
#9D5AAA #AA755A #67AA5A #5A8FAA
square
#9D5AAA #AA755A #67AA5A #5A8FAA
split-complementary
#9D5AAA #8FAA5A #5AAA75
monochromatic
#542F5B #794483 #9D5AAA #B582BF #CDABD4

Accessibility & contrast

On white

4.69
#9D5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9D5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D5AAA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AAA#FFFFFF#000000##FFFFFF
##9D5AAA1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6FAD
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#9E647A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d5aaa;
/* rgb */ color: rgb(157, 90, 170);
/* oklch */ color: oklch(57.5% 0.139 320.9);
Tailwind
colors: {
  custom: {
    50: '#bb8bc3',
    500: '#9d5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #9d5aaa;
$custom-light: #bb8bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5aaa",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 290.25,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57478,
    "c": 0.13878,
    "h": 320.9
  },
  "luminance": 0.17383
}

Semantic roles & 50–950 ramp

primary
#9D5AAA
secondary
#A4C29E
accent
#C86071
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#120C12
muted
#817D81

Preview Lab

Preview with #9D5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

#9D5AAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva