#9B5FF2#9B5FF2

#9B5FF2 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.3% C 0.212 H 298.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#9B5FF2
RGBrgb(155, 95, 242)
HSLhsl(264, 85%, 66%)
HSVhsv(264, 61%, 95%)
CMYKcmyk(36%, 60.7%, 0%, 5.1%)
CIE-LABlab(53.56, 53.82, -65.21)
CIE-LCHlch(53.56, 84.56, 309.53°)
OKLaboklab(62.28% 0.1024 -0.1853)
OKLCHoklch(62.28% 0.212 298.9)
XYZxyz(33.6328, 21.5634, 86.3774)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FF2 #B6F25F
analogous
#5F6CF2 #9B5FF2 #E55FF2
triadic
#9B5FF2 #F29B5F #5FF29B
tetradic
#9B5FF2 #F25F6C #B6F25F #5FF2E5
square
#9B5FF2 #F25F6C #B6F25F #5FF2E5
split-complementary
#9B5FF2 #F2E55F #6CF25F
monochromatic
#5B10C6 #7826ED #9B5FF2 #BE98F7 #E2D0FB

Accessibility & contrast

On white

3.95
#9B5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#9B5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FF2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FF2#FFFFFF#000000##000000
##9B5FF21.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#237FEF
Tritanopia (blue-blind)
#877FA0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9b5ff2;
/* rgb */ color: rgb(155, 95, 242);
/* oklch */ color: oklch(62.3% 0.212 298.9);
Tailwind
colors: {
  custom: {
    50: '#be8ff7',
    500: '#9b5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ff2;
$custom-light: #be8ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ff2",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 264.49,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62275,
    "c": 0.21172,
    "h": 298.9
  },
  "luminance": 0.21564
}

Semantic roles & 50–950 ramp

primary
#9B5FF2
secondary
#DBEFBE
accent
#E10487
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130D17
muted
#827D85

Preview Lab

Preview with #9B5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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