#9B5BDC#9B5BDC

#9B5BDC is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.3% C 0.192 H 304.1°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9B5BDC
RGBrgb(155, 91, 220)
HSLhsl(270, 65%, 61%)
HSVhsv(270, 59%, 86%)
CMYKcmyk(29.5%, 58.6%, 0%, 13.7%)
CIE-LABlab(51.40, 50.56, -56.31)
CIE-LCHlch(51.40, 75.68, 311.92°)
OKLaboklab(60.26% 0.1077 -0.1592)
OKLCHoklch(60.26% 0.192 304.1)
XYZxyz(30.1740, 19.6181, 69.8933)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BDC #9CDC5B
analogous
#5B5BDC #9B5BDC #DB5BDC
triadic
#9B5BDC #DC9B5B #5BDC9B
tetradic
#9B5BDC #DC5B5B #9CDC5B #5BDCDB
square
#9B5BDC #DC5B5B #9CDC5B #5BDCDB
split-complementary
#9B5BDC #DCDB5B #5BDC5B
monochromatic
#5E219B #7C2CCE #9B5BDC #BA8DE7 #D9C0F2

Accessibility & contrast

On white

4.27
#9B5BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9B5BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5BDC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5BDC#FFFFFF#000000##000000
##9B5BDC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F79E0
Deuteranopia (green-blind)
#3D7AD9
Tritanopia (blue-blind)
#8F7593
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9b5bdc;
/* rgb */ color: rgb(155, 91, 220);
/* oklch */ color: oklch(60.3% 0.192 304.1);
Tailwind
colors: {
  custom: {
    50: '#bc8ce7',
    500: '#9b5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bdc;
$custom-light: #bc8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bdc",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 269.767,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60262,
    "c": 0.19221,
    "h": 304.1
  },
  "luminance": 0.19618
}

Semantic roles & 50–950 ramp

primary
#9B5BDC
secondary
#CAE2B1
accent
#CD1973
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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