#9B5FE6#9B5FE6

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

Color values

HEX#9B5FE6
RGBrgb(155, 95, 230)
HSLhsl(267, 73%, 64%)
HSVhsv(267, 59%, 90%)
CMYKcmyk(32.6%, 58.7%, 0%, 9.8%)
CIE-LABlab(52.80, 50.87, -59.71)
CIE-LCHlch(52.80, 78.44, 310.43°)
OKLaboklab(61.48% 0.1028 -0.1692)
OKLCHoklch(61.48% 0.198 301.3)
XYZxyz(31.8893, 20.8660, 77.1951)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FE6 #AAE65F
analogous
#5F66E6 #9B5FE6 #DF5FE6
triadic
#9B5FE6 #E69B5F #5FE69B
tetradic
#9B5FE6 #E65F66 #AAE65F #5FE6DF
square
#9B5FE6 #E65F66 #AAE65F #5FE6DF
split-complementary
#9B5FE6 #E6DF5F #66E65F
monochromatic
#5D1BAF #7A2ADE #9B5FE6 #BC94EE #DDC9F7

Accessibility & contrast

On white

4.06
#9B5FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9B5FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FE6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FE6#FFFFFF#000000##000000
##9B5FE61.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#167DEA
Deuteranopia (green-blind)
#377DE3
Tritanopia (blue-blind)
#8C7B9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9b5fe6;
/* rgb */ color: rgb(155, 95, 230);
/* oklch */ color: oklch(61.5% 0.198 301.3);
Tailwind
colors: {
  custom: {
    50: '#bd8fef',
    500: '#9b5fe6',
    950: '#000000',
  },
}
SCSS
$custom: #9b5fe6;
$custom-light: #bd8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5fe6",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 230
  },
  "hsl": {
    "h": 266.667,
    "s": 72.973,
    "l": 63.725
  },
  "oklch": {
    "l": 0.6148,
    "c": 0.19794,
    "h": 301.3
  },
  "luminance": 0.20866
}

Semantic roles & 50–950 ramp

primary
#9B5FE6
secondary
#D3E8B9
accent
#D5107E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D16
muted
#817D84

Preview Lab

Preview with #9B5FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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