#9D5CD9#9D5CD9

#9D5CD9 is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.4% C 0.188 H 305.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9D5CD9
RGBrgb(157, 92, 217)
HSLhsl(271, 62%, 61%)
HSVhsv(271, 58%, 85%)
CMYKcmyk(27.6%, 57.6%, 0%, 14.9%)
CIE-LABlab(51.65, 49.81, -54.21)
CIE-LCHlch(51.65, 73.62, 312.58°)
OKLaboklab(60.43% 0.109 -0.153)
OKLCHoklch(60.43% 0.188 305.5)
XYZxyz(30.2535, 19.8324, 67.8664)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CD9 #98D95C
analogous
#5E5CD9 #9D5CD9 #D95CD6
triadic
#9D5CD9 #D99D5C #5CD99D
tetradic
#9D5CD9 #D95E5C #98D95C #5CD6D9
square
#9D5CD9 #D95E5C #98D95C #5CD6D9
split-complementary
#9D5CD9 #D6D95C #5CD95E
monochromatic
#602397 #7F2FC9 #9D5CD9 #BB8EE5 #D9BFF0

Accessibility & contrast

On white

4.23
#9D5CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9D5CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CD9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CD9#FFFFFF#000000##000000
##9D5CD91.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2979DD
Deuteranopia (green-blind)
#447BD6
Tritanopia (blue-blind)
#937492
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5cd9;
/* rgb */ color: rgb(157, 92, 217);
/* oklch */ color: oklch(60.4% 0.188 305.5);
Tailwind
colors: {
  custom: {
    50: '#bd8de5',
    500: '#9d5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #9d5cd9;
$custom-light: #bd8de5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5cd9",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 271.2,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60434,
    "c": 0.18784,
    "h": 305.5
  },
  "luminance": 0.19832
}

Semantic roles & 50–950 ramp

primary
#9D5CD9
secondary
#C7E0B1
accent
#CA1C6F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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