#9D5DCD#9D5DCD

#9D5DCD is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.9% C 0.173 H 308.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9D5DCD
RGBrgb(157, 93, 205)
HSLhsl(274, 53%, 58%)
HSVhsv(274, 55%, 80%)
CMYKcmyk(23.4%, 54.6%, 0%, 19.6%)
CIE-LABlab(51.16, 46.50, -48.15)
CIE-LCHlch(51.16, 66.94, 314.00°)
OKLaboklab(59.85% 0.1074 -0.1352)
OKLCHoklch(59.85% 0.173 308.4)
XYZxyz(28.8362, 19.4050, 59.9722)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DCD #8DCD5D
analogous
#655DCD #9D5DCD #CD5DC5
triadic
#9D5DCD #CD9D5D #5DCD9D
tetradic
#9D5DCD #CD655D #8DCD5D #5DC5CD
square
#9D5DCD #CD655D #8DCD5D #5DC5CD
split-complementary
#9D5DCD #C5CD5D #5DCD65
monochromatic
#5E2986 #7F38B5 #9D5DCD #B98CDB #D6BBEA

Accessibility & contrast

On white

4.30
#9D5DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#9D5DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DCD
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DCD#FFFFFF#000000##000000
##9D5DCD1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3977D1
Deuteranopia (green-blind)
#4F7BCA
Tritanopia (blue-blind)
#96718C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9d5dcd;
/* rgb */ color: rgb(157, 93, 205);
/* oklch */ color: oklch(59.9% 0.173 308.4);
Tailwind
colors: {
  custom: {
    50: '#bd8ddd',
    500: '#9d5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #9d5dcd;
$custom-light: #bd8ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5dcd",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 274.286,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59852,
    "c": 0.17268,
    "h": 308.4
  },
  "luminance": 0.19405
}

Semantic roles & 50–950 ramp

primary
#9D5DCD
secondary
#C0D9AD
accent
#DC4C8A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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