#9B5CDC#9B5CDC

#9B5CDC is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.4% C 0.191 H 303.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9B5CDC
RGBrgb(155, 92, 220)
HSLhsl(270, 65%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(29.5%, 58.2%, 0%, 13.7%)
CIE-LABlab(51.60, 50.04, -56.00)
CIE-LCHlch(51.60, 75.10, 311.78°)
OKLaboklab(60.41% 0.1065 -0.1583)
OKLCHoklch(60.41% 0.191 303.9)
XYZxyz(30.2601, 19.7903, 69.9220)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CDC #9DDC5C
analogous
#5C5DDC #9B5CDC #DB5CDC
triadic
#9B5CDC #DC9B5C #5CDC9B
tetradic
#9B5CDC #DC5C5D #9DDC5C #5CDCDB
square
#9B5CDC #DC5C5D #9DDC5C #5CDCDB
split-complementary
#9B5CDC #DCDB5C #5DDC5C
monochromatic
#5E229C #7C2CCE #9B5CDC #BA8EE7 #D9C1F2

Accessibility & contrast

On white

4.24
#9B5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9B5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CDC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CDC#FFFFFF#000000##000000
##9B5CDC1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2279E0
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#8F7693
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9b5cdc;
/* rgb */ color: rgb(155, 92, 220);
/* oklch */ color: oklch(60.4% 0.191 303.9);
Tailwind
colors: {
  custom: {
    50: '#bc8de7',
    500: '#9b5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cdc;
$custom-light: #bc8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cdc",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 269.531,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60406,
    "c": 0.19076,
    "h": 303.9
  },
  "luminance": 0.1979
}

Semantic roles & 50–950 ramp

primary
#9B5CDC
secondary
#CAE2B2
accent
#CC1974
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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