#9D5CD4#9D5CD4

#9D5CD4 is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.1% C 0.182 H 306.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9D5CD4
RGBrgb(157, 92, 212)
HSLhsl(273, 58%, 60%)
HSVhsv(273, 57%, 83%)
CMYKcmyk(25.9%, 56.6%, 0%, 16.9%)
CIE-LABlab(51.35, 48.64, -51.83)
CIE-LCHlch(51.35, 71.08, 313.18°)
OKLaboklab(60.12% 0.1089 -0.146)
OKLCHoklch(60.12% 0.182 306.7)
XYZxyz(29.6130, 19.5762, 64.4931)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CD4 #93D45C
analogous
#615CD4 #9D5CD4 #D45CCF
triadic
#9D5CD4 #D49D5C #5CD49D
tetradic
#9D5CD4 #D4615C #93D45C #5CCFD4
square
#9D5CD4 #D4615C #93D45C #5CCFD4
split-complementary
#9D5CD4 #CFD45C #5CD461
monochromatic
#5F2690 #7F33C0 #9D5CD4 #BA8CE1 #D7BDEE

Accessibility & contrast

On white

4.27
#9D5CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9D5CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CD4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CD4#FFFFFF#000000##000000
##9D5CD41.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3078D8
Deuteranopia (green-blind)
#497BD1
Tritanopia (blue-blind)
#94738F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5cd4;
/* rgb */ color: rgb(157, 92, 212);
/* oklch */ color: oklch(60.1% 0.182 306.7);
Tailwind
colors: {
  custom: {
    50: '#bd8de2',
    500: '#9d5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cd4;
$custom-light: #bd8de2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cd4",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 272.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.60125,
    "c": 0.18217,
    "h": 306.7
  },
  "luminance": 0.19576
}

Semantic roles & 50–950 ramp

primary
#9D5CD4
secondary
#C4DDAF
accent
#E1468D
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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