#9D5BDD#9D5BDD

#9D5BDD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.5% C 0.194 H 304.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9D5BDD
RGBrgb(157, 91, 221)
HSLhsl(270, 66%, 61%)
HSVhsv(270, 59%, 87%)
CMYKcmyk(29%, 58.8%, 0%, 13.3%)
CIE-LABlab(51.69, 51.27, -56.41)
CIE-LCHlch(51.69, 76.22, 312.27°)
OKLaboklab(60.54% 0.1103 -0.1594)
OKLCHoklch(60.54% 0.194 304.7)
XYZxyz(30.6940, 19.8709, 70.6110)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BDD #9BDD5B
analogous
#5C5BDD #9D5BDD #DD5BDC
triadic
#9D5BDD #DD9D5B #5BDD9D
tetradic
#9D5BDD #DD5C5B #9BDD5B #5BDCDD
square
#9D5BDD #DD5C5B #9BDD5B #5BDCDD
split-complementary
#9D5BDD #DCDD5B #5BDD5C
monochromatic
#60219D #7F2BD0 #9D5BDD #BB8EE8 #DAC0F2

Accessibility & contrast

On white

4.22
#9D5BDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D5BDD#FFFFFF#000000##000000
##9D5BDD1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E79E1
Deuteranopia (green-blind)
#3F7BDA
Tritanopia (blue-blind)
#927593
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5bdd;
/* rgb */ color: rgb(157, 91, 221);
/* oklch */ color: oklch(60.5% 0.194 304.7);
Tailwind
colors: {
  custom: {
    50: '#be8ce8',
    500: '#9d5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #9d5bdd;
$custom-light: #be8ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5bdd",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 270.462,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.19382,
    "h": 304.7
  },
  "luminance": 0.19871
}

Semantic roles & 50–950 ramp

primary
#9D5BDD
secondary
#CAE2B1
accent
#CE1871
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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