#9B5DCA#9B5DCA

#9B5DCA is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.5% C 0.169 H 308.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9B5DCA
RGBrgb(155, 93, 202)
HSLhsl(274, 51%, 58%)
HSVhsv(274, 54%, 79%)
CMYKcmyk(23.3%, 54%, 0%, 20.8%)
CIE-LABlab(50.76, 45.29, -47.08)
CIE-LCHlch(50.76, 65.33, 313.89°)
OKLaboklab(59.45% 0.1047 -0.1322)
OKLCHoklch(59.45% 0.169 308.4)
XYZxyz(28.0905, 19.0619, 58.0652)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DCA #8CCA5D
analogous
#645DCA #9B5DCA #CA5DC3
triadic
#9B5DCA #CA9B5D #5DCA9B
tetradic
#9B5DCA #CA645D #8CCA5D #5DC3CA
square
#9B5DCA #CA645D #8CCA5D #5DC3CA
split-complementary
#9B5DCA #C3CA5D #5DCA64
monochromatic
#5C2B82 #7D3AB0 #9B5DCA #B78BD9 #D4B9E8

Accessibility & contrast

On white

4.36
#9B5DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9B5DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DCA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DCA#FFFFFF#000000##000000
##9B5DCA1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B76CE
Deuteranopia (green-blind)
#507AC7
Tritanopia (blue-blind)
#94708B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9b5dca;
/* rgb */ color: rgb(155, 93, 202);
/* oklch */ color: oklch(59.5% 0.169 308.4);
Tailwind
colors: {
  custom: {
    50: '#bb8ddb',
    500: '#9b5dca',
    950: '#000000',
  },
}
SCSS
$custom: #9b5dca;
$custom-light: #bb8ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5dca",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 274.128,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59454,
    "c": 0.16861,
    "h": 308.4
  },
  "luminance": 0.19062
}

Semantic roles & 50–950 ramp

primary
#9B5DCA
secondary
#BED7AC
accent
#DA4E8A
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9B5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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