#9B5FEB#9B5FEB

#9B5FEB is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.8% C 0.204 H 300.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9B5FEB
RGBrgb(155, 95, 235)
HSLhsl(266, 78%, 65%)
HSVhsv(266, 60%, 92%)
CMYKcmyk(34%, 59.6%, 0%, 7.8%)
CIE-LABlab(53.11, 52.10, -62.02)
CIE-LCHlch(53.11, 80.99, 310.03°)
OKLaboklab(61.81% 0.1026 -0.1759)
OKLCHoklch(61.81% 0.204 300.3)
XYZxyz(32.6016, 21.1509, 80.9461)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FEB #AFEB5F
analogous
#5F69EB #9B5FEB #E15FEB
triadic
#9B5FEB #EB9B5F #5FEB9B
tetradic
#9B5FEB #EB5F69 #AFEB5F #5FEBE1
square
#9B5FEB #EB5F69 #AFEB5F #5FEBE1
split-complementary
#9B5FEB #EBE15F #69EB5F
monochromatic
#5C17B9 #7929E4 #9B5FEB #BD95F2 #DFCCF9

Accessibility & contrast

On white

4.02
#9B5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9B5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FEB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FEB#FFFFFF#000000##000000
##9B5FEB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#017EEF
Deuteranopia (green-blind)
#307EE8
Tritanopia (blue-blind)
#8A7D9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b5feb;
/* rgb */ color: rgb(155, 95, 235);
/* oklch */ color: oklch(61.8% 0.204 300.3);
Tailwind
colors: {
  custom: {
    50: '#bd8ff2',
    500: '#9b5feb',
    950: '#000000',
  },
}
SCSS
$custom: #9b5feb;
$custom-light: #bd8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5feb",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 265.714,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61808,
    "c": 0.2037,
    "h": 300.3
  },
  "luminance": 0.21151
}

Semantic roles & 50–950 ramp

primary
#9B5FEB
secondary
#D6EBBB
accent
#DA0B82
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9B5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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