#9B5CD7#9B5CD7

#9B5CD7 is a mid, vivid violet. Relative luminance 0.195; OKLCH L 60.1% C 0.185 H 305.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9B5CD7
RGBrgb(155, 92, 215)
HSLhsl(271, 61%, 60%)
HSVhsv(271, 57%, 84%)
CMYKcmyk(27.9%, 57.2%, 0%, 15.7%)
CIE-LABlab(51.30, 48.85, -53.64)
CIE-LCHlch(51.30, 72.55, 312.33°)
OKLaboklab(60.09% 0.1065 -0.1514)
OKLCHoklch(60.09% 0.185 305.1)
XYZxyz(29.6078, 19.5293, 66.4866)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CD7 #98D75C
analogous
#5E5CD7 #9B5CD7 #D75CD5
triadic
#9B5CD7 #D79B5C #5CD79B
tetradic
#9B5CD7 #D75E5C #98D75C #5CD5D7
square
#9B5CD7 #D75E5C #98D75C #5CD5D7
split-complementary
#9B5CD7 #D5D75C #5CD75E
monochromatic
#5E2494 #7D30C5 #9B5CD7 #B98DE3 #D7BEEF

Accessibility & contrast

On white

4.28
#9B5CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#9B5CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CD7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CD7#FFFFFF#000000##000000
##9B5CD71.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A78DB
Deuteranopia (green-blind)
#447AD4
Tritanopia (blue-blind)
#917491
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9b5cd7;
/* rgb */ color: rgb(155, 92, 215);
/* oklch */ color: oklch(60.1% 0.185 305.1);
Tailwind
colors: {
  custom: {
    50: '#bc8de4',
    500: '#9b5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cd7;
$custom-light: #bc8de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cd7",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 270.732,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60091,
    "c": 0.18505,
    "h": 305.1
  },
  "luminance": 0.19529
}

Semantic roles & 50–950 ramp

primary
#9B5CD7
secondary
#C7DFB0
accent
#C81D71
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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