#9D5DC1#9D5DC1

#9D5DC1 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.2% C 0.159 H 312.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9D5DC1
RGBrgb(157, 93, 193)
HSLhsl(278, 45%, 56%)
HSVhsv(278, 52%, 76%)
CMYKcmyk(18.7%, 51.8%, 0%, 24.3%)
CIE-LABlab(50.51, 43.80, -42.29)
CIE-LCHlch(50.51, 60.88, 316.00°)
OKLaboklab(59.16% 0.1065 -0.1181)
OKLCHoklch(59.16% 0.159 312)
XYZxyz(27.4429, 18.8477, 52.6340)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DC1 #81C15D
analogous
#6B5DC1 #9D5DC1 #C15DB3
triadic
#9D5DC1 #C19D5D #5DC19D
tetradic
#9D5DC1 #C16B5D #81C15D #5DB3C1
square
#9D5DC1 #C16B5D #81C15D #5DB3C1
split-complementary
#9D5DC1 #B3C15D #5DC16B
monochromatic
#5C2D76 #7E3EA3 #9D5DC1 #B889D2 #D3B6E3

Accessibility & contrast

On white

4.40
#9D5DC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#9D5DC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DC1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DC1#FFFFFF#000000##000000
##9D5DC11.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4475C4
Deuteranopia (green-blind)
#587ABE
Tritanopia (blue-blind)
#996D86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9d5dc1;
/* rgb */ color: rgb(157, 93, 193);
/* oklch */ color: oklch(59.2% 0.159 312.0);
Tailwind
colors: {
  custom: {
    50: '#bc8dd4',
    500: '#9d5dc1',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dc1;
$custom-light: #bc8dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dc1",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 193
  },
  "hsl": {
    "h": 278.4,
    "s": 44.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59163,
    "c": 0.15905,
    "h": 312
  },
  "luminance": 0.18847
}

Semantic roles & 50–950 ramp

primary
#9D5DC1
secondary
#B7D2A8
accent
#D45382
background
#FBF8FD
surface
#F7F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #9D5DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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