#9B5FC2#9B5FC2

#9B5FC2 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.3% C 0.156 H 310.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9B5FC2
RGBrgb(155, 95, 194)
HSLhsl(276, 45%, 57%)
HSVhsv(276, 51%, 76%)
CMYKcmyk(20.1%, 51%, 0%, 23.9%)
CIE-LABlab(50.74, 42.39, -42.51)
CIE-LCHlch(50.74, 60.04, 314.92°)
OKLaboklab(59.3% 0.1013 -0.1188)
OKLCHoklch(59.3% 0.156 310.5)
XYZxyz(27.3456, 19.0485, 53.2647)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FC2 #86C25F
analogous
#6A5FC2 #9B5FC2 #C25FB7
triadic
#9B5FC2 #C29B5F #5FC29B
tetradic
#9B5FC2 #C26A5F #86C25F #5FB7C2
square
#9B5FC2 #C26A5F #86C25F #5FB7C2
split-complementary
#9B5FC2 #B7C25F #5FC26A
monochromatic
#5B2E79 #7D3FA5 #9B5FC2 #B78BD3 #D2B8E4

Accessibility & contrast

On white

4.37
#9B5FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9B5FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FC2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FC2#FFFFFF#000000##000000
##9B5FC21.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4576C5
Deuteranopia (green-blind)
#577ABF
Tritanopia (blue-blind)
#966F88
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9b5fc2;
/* rgb */ color: rgb(155, 95, 194);
/* oklch */ color: oklch(59.3% 0.156 310.5);
Tailwind
colors: {
  custom: {
    50: '#bb8ed5',
    500: '#9b5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #9b5fc2;
$custom-light: #bb8ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5fc2",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 276.364,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59302,
    "c": 0.15619,
    "h": 310.5
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#9B5FC2
secondary
#BAD3AA
accent
#D45386
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83

Preview Lab

Preview with #9B5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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