#9B5DE3#9B5DE3

#9B5DE3 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 61.0% C 0.197 H 302.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9B5DE3
RGBrgb(155, 93, 227)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.7%, 59%, 0%, 11%)
CIE-LABlab(52.22, 51.19, -58.95)
CIE-LCHlch(52.22, 78.08, 310.97°)
OKLaboklab(61% 0.1052 -0.1669)
OKLCHoklch(61% 0.197 302.2)
XYZxyz(31.2938, 20.3433, 74.9361)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DE3 #A5E35D
analogous
#5D62E3 #9B5DE3 #DE5DE3
triadic
#9B5DE3 #E39B5D #5DE39B
tetradic
#9B5DE3 #E35D62 #A5E35D #5DE3DE
square
#9B5DE3 #E35D62 #A5E35D #5DE3DE
split-complementary
#9B5DE3 #E3DE5D #62E35D
monochromatic
#5E1DA8 #7B29DA #9B5DE3 #BB91EC #DBC5F5

Accessibility & contrast

On white

4.14
#9B5DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9B5DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DE3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DE3#FFFFFF#000000##000000
##9B5DE31.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#167CE7
Deuteranopia (green-blind)
#387CE0
Tritanopia (blue-blind)
#8D7997
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5de3;
/* rgb */ color: rgb(155, 93, 227);
/* oklch */ color: oklch(61.0% 0.197 302.2);
Tailwind
colors: {
  custom: {
    50: '#bd8dec',
    500: '#9b5de3',
    950: '#000000',
  },
}
SCSS
$custom: #9b5de3;
$custom-light: #bd8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5de3",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 227
  },
  "hsl": {
    "h": 267.761,
    "s": 70.526,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60998,
    "c": 0.19733,
    "h": 302.2
  },
  "luminance": 0.20343
}

Semantic roles & 50–950 ramp

primary
#9B5DE3
secondary
#D0E6B6
accent
#D3137A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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