#9D5ABC#9D5ABC

#9D5ABC is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.4% C 0.158 H 314.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9D5ABC
RGBrgb(157, 90, 188)
HSLhsl(281, 42%, 55%)
HSVhsv(281, 52%, 74%)
CMYKcmyk(16.5%, 52.1%, 0%, 26.3%)
CIE-LABlab(49.63, 44.31, -40.79)
CIE-LCHlch(49.63, 60.23, 317.37°)
OKLaboklab(58.43% 0.1101 -0.1138)
OKLCHoklch(58.43% 0.158 314.1)
XYZxyz(26.6364, 18.1120, 49.6600)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5ABC #79BC5A
analogous
#6C5ABC #9D5ABC #BC5AAA
triadic
#9D5ABC #BC9D5A #5ABC9D
tetradic
#9D5ABC #BC6C5A #79BC5A #5AAABC
square
#9D5ABC #BC6C5A #79BC5A #5AAABC
split-complementary
#9D5ABC #AABC5A #5ABC6C
monochromatic
#5A2D6F #7D3F9A #9D5ABC #B786CE #D1B1DF

Accessibility & contrast

On white

4.54
#9D5ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#9D5ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5ABC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5ABC#FFFFFF#000000##000000
##9D5ABC1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#9B6A83
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d5abc;
/* rgb */ color: rgb(157, 90, 188);
/* oklch */ color: oklch(58.4% 0.158 314.1);
Tailwind
colors: {
  custom: {
    50: '#bc8bd0',
    500: '#9d5abc',
    950: '#000000',
  },
}
SCSS
$custom: #9d5abc;
$custom-light: #bc8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5abc",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 281.02,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5843,
    "c": 0.15833,
    "h": 314.1
  },
  "luminance": 0.18111
}

Semantic roles & 50–950 ramp

primary
#9D5ABC
secondary
#B1CEA4
accent
#D2567D
background
#FBF8FC
surface
#F7F0F9
border
#D0CBD2
text
#120C14
muted
#817D82

Preview Lab

Preview with #9D5ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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