#9B5DE4#9B5DE4

#9B5DE4 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 61.1% C 0.198 H 302.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9B5DE4
RGBrgb(155, 93, 228)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(32%, 59.2%, 0%, 10.6%)
CIE-LABlab(52.28, 51.43, -59.42)
CIE-LCHlch(52.28, 78.59, 310.88°)
OKLaboklab(61.06% 0.1052 -0.1683)
OKLCHoklch(61.06% 0.198 302)
XYZxyz(31.4322, 20.3986, 75.6651)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DE4 #A6E45D
analogous
#5D62E4 #9B5DE4 #DF5DE4
triadic
#9B5DE4 #E49B5D #5DE49B
tetradic
#9B5DE4 #E45D62 #A6E45D #5DE4DF
square
#9B5DE4 #E45D62 #A6E45D #5DE4DF
split-complementary
#9B5DE4 #E4DF5D #62E45D
monochromatic
#5E1CAA #7B29DB #9B5DE4 #BB91ED #DCC6F5

Accessibility & contrast

On white

4.13
#9B5DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9B5DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DE4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DE4#FFFFFF#000000##000000
##9B5DE41.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#127CE8
Deuteranopia (green-blind)
#377CE1
Tritanopia (blue-blind)
#8D7998
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5de4;
/* rgb */ color: rgb(155, 93, 228);
/* oklch */ color: oklch(61.1% 0.198 302.0);
Tailwind
colors: {
  custom: {
    50: '#bd8eed',
    500: '#9b5de4',
    950: '#000000',
  },
}
SCSS
$custom: #9b5de4;
$custom-light: #bd8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5de4",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 267.556,
    "s": 71.429,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61063,
    "c": 0.19847,
    "h": 302
  },
  "luminance": 0.20399
}

Semantic roles & 50–950 ramp

primary
#9B5DE4
secondary
#D0E7B6
accent
#D3127B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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