#9B5DED#9B5DED

#9B5DED is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.209 H 300.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9B5DED
RGBrgb(155, 93, 237)
HSLhsl(266, 80%, 65%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.6%, 60.8%, 0%, 7.1%)
CIE-LABlab(52.85, 53.63, -63.56)
CIE-LCHlch(52.85, 83.16, 310.16°)
OKLaboklab(61.66% 0.1049 -0.1805)
OKLCHoklch(61.66% 0.209 300.2)
XYZxyz(32.7143, 20.9114, 82.4171)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DED #AFED5D
analogous
#5D67ED #9B5DED #E35DED
triadic
#9B5DED #ED9B5D #5DED9B
tetradic
#9B5DED #ED5D67 #AFED5D #5DEDE3
square
#9B5DED #ED5D67 #AFED5D #5DEDE3
split-complementary
#9B5DED #EDE35D #67ED5D
monochromatic
#5C15BB #7926E7 #9B5DED #BD94F3 #DFCBF9

Accessibility & contrast

On white

4.05
#9B5DED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#9B5DED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DED
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DED#FFFFFF#000000##000000
##9B5DED1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#287DEA
Tritanopia (blue-blind)
#897C9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9b5ded;
/* rgb */ color: rgb(155, 93, 237);
/* oklch */ color: oklch(61.7% 0.209 300.2);
Tailwind
colors: {
  custom: {
    50: '#bd8ef4',
    500: '#9b5ded',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ded;
$custom-light: #bd8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ded",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 237
  },
  "hsl": {
    "h": 265.833,
    "s": 80,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61658,
    "c": 0.20873,
    "h": 300.2
  },
  "luminance": 0.20912
}

Semantic roles & 50–950 ramp

primary
#9B5DED
secondary
#D6ECBA
accent
#DC0981
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5DED

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

Preview Lab → · Contrast checker → · Palette generator →

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