#9B5FE7#9B5FE7

#9B5FE7 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 61.5% C 0.199 H 301.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9B5FE7
RGBrgb(155, 95, 231)
HSLhsl(266, 74%, 64%)
HSVhsv(266, 59%, 91%)
CMYKcmyk(32.9%, 58.9%, 0%, 9.4%)
CIE-LABlab(52.86, 51.12, -60.17)
CIE-LCHlch(52.86, 78.95, 310.35°)
OKLaboklab(61.55% 0.1027 -0.1705)
OKLCHoklch(61.55% 0.199 301.1)
XYZxyz(32.0302, 20.9223, 77.9368)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FE7 #ABE75F
analogous
#5F67E7 #9B5FE7 #DF5FE7
triadic
#9B5FE7 #E79B5F #5FE79B
tetradic
#9B5FE7 #E75F67 #ABE75F #5FE7DF
square
#9B5FE7 #E75F67 #ABE75F #5FE7DF
split-complementary
#9B5FE7 #E7DF5F #67E75F
monochromatic
#5D1BB1 #7A2ADF #9B5FE7 #BC94EF #DEC9F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B5FE7#FFFFFF#000000##000000
##9B5FE71.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)
#137DEB
Deuteranopia (green-blind)
#367DE4
Tritanopia (blue-blind)
#8B7B9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9b5fe7;
/* rgb */ color: rgb(155, 95, 231);
/* oklch */ color: oklch(61.5% 0.199 301.1);
Tailwind
colors: {
  custom: {
    50: '#bd8fef',
    500: '#9b5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #9b5fe7;
$custom-light: #bd8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5fe7",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 266.471,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61545,
    "c": 0.1991,
    "h": 301.1
  },
  "luminance": 0.20923
}

Semantic roles & 50–950 ramp

primary
#9B5FE7
secondary
#D4E9B9
accent
#D60F7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9B5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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