#9B5CDD#9B5CDD

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

Color values

HEX#9B5CDD
RGBrgb(155, 92, 221)
HSLhsl(269, 65%, 61%)
HSVhsv(269, 58%, 87%)
CMYKcmyk(29.9%, 58.4%, 0%, 13.3%)
CIE-LABlab(51.66, 50.28, -56.47)
CIE-LCHlch(51.66, 75.61, 311.68°)
OKLaboklab(60.47% 0.1065 -0.1596)
OKLCHoklch(60.47% 0.192 303.7)
XYZxyz(30.3929, 19.8434, 70.6216)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CDD #9EDD5C
analogous
#5C5EDD #9B5CDD #DB5CDD
triadic
#9B5CDD #DD9B5C #5CDD9B
tetradic
#9B5CDD #DD5C5E #9EDD5C #5CDDDB
square
#9B5CDD #DD5C5E #9EDD5C #5CDDDB
split-complementary
#9B5CDD #DDDB5C #5EDD5C
monochromatic
#5E219E #7C2BD0 #9B5CDD #BA8FE8 #D9C1F2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B5CDD#FFFFFF#000000##000000
##9B5CDD1.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)
#207AE1
Deuteranopia (green-blind)
#3E7BDA
Tritanopia (blue-blind)
#8F7694
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9b5cdd;
/* rgb */ color: rgb(155, 92, 221);
/* oklch */ color: oklch(60.5% 0.192 303.7);
Tailwind
colors: {
  custom: {
    50: '#bc8de8',
    500: '#9b5cdd',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cdd;
$custom-light: #bc8de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cdd",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 221
  },
  "hsl": {
    "h": 269.302,
    "s": 65.482,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60469,
    "c": 0.1919,
    "h": 303.7
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#9B5CDD
secondary
#CBE3B2
accent
#CD1875
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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