#9B5CDB#9B5CDB

#9B5CDB is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.3% C 0.190 H 304.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9B5CDB
RGBrgb(155, 92, 219)
HSLhsl(270, 64%, 61%)
HSVhsv(270, 58%, 86%)
CMYKcmyk(29.2%, 58%, 0%, 14.1%)
CIE-LABlab(51.54, 49.80, -55.53)
CIE-LCHlch(51.54, 74.59, 311.89°)
OKLaboklab(60.34% 0.1065 -0.1569)
OKLCHoklch(60.34% 0.19 304.2)
XYZxyz(30.1281, 19.7374, 69.2266)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CDB #9CDB5C
analogous
#5C5CDB #9B5CDB #DB5CDB
triadic
#9B5CDB #DB9B5C #5CDB9B
tetradic
#9B5CDB #DB5C5C #9CDB5C #5CDBDB
square
#9B5CDB #DB5C5C #9CDB5C #5CDBDB
split-complementary
#9B5CDB #DBDB5C #5CDB5C
monochromatic
#5E229A #7C2DCD #9B5CDB #BA8EE6 #D9C0F1

Accessibility & contrast

On white

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

On black

4.95
#9B5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CDB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CDB#FFFFFF#000000##000000
##9B5CDB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2479DF
Deuteranopia (green-blind)
#407BD8
Tritanopia (blue-blind)
#8F7593
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9b5cdb;
/* rgb */ color: rgb(155, 92, 219);
/* oklch */ color: oklch(60.3% 0.190 304.2);
Tailwind
colors: {
  custom: {
    50: '#bc8de7',
    500: '#9b5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cdb;
$custom-light: #bc8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cdb",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 269.764,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60342,
    "c": 0.18963,
    "h": 304.2
  },
  "luminance": 0.19737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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