#9B5BDB#9B5BDB

#9B5BDB is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.2% C 0.191 H 304.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9B5BDB
RGBrgb(155, 91, 219)
HSLhsl(270, 64%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(29.2%, 58.4%, 0%, 14.1%)
CIE-LABlab(51.34, 50.32, -55.84)
CIE-LCHlch(51.34, 75.17, 312.02°)
OKLaboklab(60.2% 0.1077 -0.1578)
OKLCHoklch(60.2% 0.191 304.3)
XYZxyz(30.0420, 19.5653, 69.1979)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5BDB #9BDB5B
analogous
#5B5BDB #9B5BDB #DB5BDB
triadic
#9B5BDB #DB9B5B #5BDB9B
tetradic
#9B5BDB #DB5B5B #9BDB5B #5BDBDB
square
#9B5BDB #DB5B5B #9BDB5B #5BDBDB
split-complementary
#9B5BDB #DBDB5B #5BDB5B
monochromatic
#5E229A #7C2DCC #9B5BDB #BA8DE6 #D8BFF1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B5BDB#FFFFFF#000000##000000
##9B5BDB1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2179DF
Deuteranopia (green-blind)
#3F7AD8
Tritanopia (blue-blind)
#907492
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9b5bdb;
/* rgb */ color: rgb(155, 91, 219);
/* oklch */ color: oklch(60.2% 0.191 304.3);
Tailwind
colors: {
  custom: {
    50: '#bc8ce7',
    500: '#9b5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5bdb;
$custom-light: #bc8ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5bdb",
  "rgb": {
    "r": 155,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 270,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60198,
    "c": 0.19107,
    "h": 304.3
  },
  "luminance": 0.19565
}

Semantic roles & 50–950 ramp

primary
#9B5BDB
secondary
#C9E1B1
accent
#CC1A73
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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