#9B5DF7#9B5DF7

#9B5DF7 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.3% C 0.220 H 298.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9B5DF7
RGBrgb(155, 93, 247)
HSLhsl(264, 91%, 67%)
HSVhsv(264, 62%, 97%)
CMYKcmyk(37.2%, 62.3%, 0%, 3.1%)
CIE-LABlab(53.51, 56.09, -68.09)
CIE-LCHlch(53.51, 88.22, 309.48°)
OKLaboklab(62.34% 0.1043 -0.1938)
OKLCHoklch(62.34% 0.22 298.3)
XYZxyz(34.2162, 21.5122, 90.3272)
Luminance0.2151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DF7 #B9F75D
analogous
#5D6CF7 #9B5DF7 #E85DF7
triadic
#9B5DF7 #F79B5D #5DF79B
tetradic
#9B5DF7 #F75D6C #B9F75D #5DF7E8
square
#9B5DF7 #F75D6C #B9F75D #5DF7E8
split-complementary
#9B5DF7 #F7E85D #6CF75D
monochromatic
#5A0ACF #7723F4 #9B5DF7 #BF97FA #E3D2FD

Accessibility & contrast

On white

3.96
#9B5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#9B5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DF7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DF7#FFFFFF#000000##000000
##9B5DF71.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FC
Deuteranopia (green-blind)
#087EF4
Tritanopia (blue-blind)
#867FA2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b5df7;
/* rgb */ color: rgb(155, 93, 247);
/* oklch */ color: oklch(62.3% 0.220 298.3);
Tailwind
colors: {
  custom: {
    50: '#be8efb',
    500: '#9b5df7',
    950: '#000000',
  },
}
SCSS
$custom: #9b5df7;
$custom-light: #be8efb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5df7",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 264.156,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.62339,
    "c": 0.22005,
    "h": 298.3
  },
  "luminance": 0.21513
}

Semantic roles & 50–950 ramp

primary
#9B5DF7
secondary
#DDF1BF
accent
#E60089
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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