#9D5DB2#9D5DB2

#9D5DB2 is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.4% C 0.142 H 317.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9D5DB2
RGBrgb(157, 93, 178)
HSLhsl(285, 36%, 53%)
HSVhsv(285, 48%, 70%)
CMYKcmyk(11.8%, 47.8%, 0%, 30.2%)
CIE-LABlab(49.75, 40.55, -34.79)
CIE-LCHlch(49.75, 53.43, 319.37°)
OKLaboklab(58.36% 0.1046 -0.0964)
OKLCHoklch(58.36% 0.142 317.3)
XYZxyz(25.8537, 18.2120, 44.2642)
Luminance0.1821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DB2 #72B25D
analogous
#725DB2 #9D5DB2 #B25D9D
triadic
#9D5DB2 #B29D5D #5DB29D
tetradic
#9D5DB2 #B2725D #72B25D #5D9DB2
square
#9D5DB2 #B2725D #72B25D #5D9DB2
split-complementary
#9D5DB2 #9DB25D #5DB272
monochromatic
#583065 #7C448E #9D5DB2 #B686C6 #CFB0D9

Accessibility & contrast

On white

4.52
#9D5DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9D5DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DB2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DB2#FFFFFF#000000##000000
##9D5DB21.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E72B5
Deuteranopia (green-blind)
#6078B0
Tritanopia (blue-blind)
#9D697F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9d5db2;
/* rgb */ color: rgb(157, 93, 178);
/* oklch */ color: oklch(58.4% 0.142 317.3);
Tailwind
colors: {
  custom: {
    50: '#bc8dc9',
    500: '#9d5db2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5db2;
$custom-light: #bc8dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5db2",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 285.176,
    "s": 35.565,
    "l": 53.137
  },
  "oklch": {
    "l": 0.58356,
    "c": 0.14228,
    "h": 317.3
  },
  "luminance": 0.18211
}

Semantic roles & 50–950 ramp

primary
#9D5DB2
secondary
#ACC8A3
accent
#CC5C78
background
#FBF8FC
surface
#F7F0F8
border
#D0CBD1
text
#120C13
muted
#817D82

Preview Lab

Preview with #9D5DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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