#9D5CD5#9D5CD5

#9D5CD5 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.2% C 0.183 H 306.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9D5CD5
RGBrgb(157, 92, 213)
HSLhsl(272, 59%, 60%)
HSVhsv(272, 57%, 84%)
CMYKcmyk(26.3%, 56.8%, 0%, 16.5%)
CIE-LABlab(51.41, 48.87, -52.31)
CIE-LCHlch(51.41, 71.59, 313.05°)
OKLaboklab(60.19% 0.109 -0.1474)
OKLCHoklch(60.19% 0.183 306.5)
XYZxyz(29.7395, 19.6268, 65.1595)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CD5 #94D55C
analogous
#605CD5 #9D5CD5 #D55CD1
triadic
#9D5CD5 #D59D5C #5CD59D
tetradic
#9D5CD5 #D5605C #94D55C #5CD1D5
square
#9D5CD5 #D5605C #94D55C #5CD1D5
split-complementary
#9D5CD5 #D1D55C #5CD560
monochromatic
#5F2591 #7F32C2 #9D5CD5 #BA8DE2 #D8BDEE

Accessibility & contrast

On white

4.26
#9D5CD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#9D5CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CD5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CD5#FFFFFF#000000##000000
##9D5CD51.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E78D9
Deuteranopia (green-blind)
#487BD2
Tritanopia (blue-blind)
#947390
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5cd5;
/* rgb */ color: rgb(157, 92, 213);
/* oklch */ color: oklch(60.2% 0.183 306.5);
Tailwind
colors: {
  custom: {
    50: '#bd8de2',
    500: '#9d5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cd5;
$custom-light: #bd8de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cd5",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 272.231,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.60187,
    "c": 0.1833,
    "h": 306.5
  },
  "luminance": 0.19626
}

Semantic roles & 50–950 ramp

primary
#9D5CD5
secondary
#C5DEAF
accent
#E2468E
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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