#9B5FEC#9B5FEC

#9B5FEC is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.205 H 300.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9B5FEC
RGBrgb(155, 95, 236)
HSLhsl(266, 79%, 65%)
HSVhsv(266, 60%, 93%)
CMYKcmyk(34.3%, 59.7%, 0%, 7.5%)
CIE-LABlab(53.18, 52.34, -62.48)
CIE-LCHlch(53.18, 81.50, 309.96°)
OKLaboklab(61.87% 0.1026 -0.1773)
OKLCHoklch(61.87% 0.205 300.1)
XYZxyz(32.7464, 21.2089, 81.7091)
Luminance0.2121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5FEC #B0EC5F
analogous
#5F69EC #9B5FEC #E25FEC
triadic
#9B5FEC #EC9B5F #5FEC9B
tetradic
#9B5FEC #EC5F69 #B0EC5F #5FECE2
square
#9B5FEC #EC5F69 #B0EC5F #5FECE2
split-complementary
#9B5FEC #ECE25F #69EC5F
monochromatic
#5C16BA #7928E6 #9B5FEC #BD96F2 #DFCCF9

Accessibility & contrast

On white

4.01
#9B5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9B5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5FEC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5FEC#FFFFFF#000000##000000
##9B5FEC1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF1
Deuteranopia (green-blind)
#2E7EE9
Tritanopia (blue-blind)
#8A7D9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9b5fec;
/* rgb */ color: rgb(155, 95, 236);
/* oklch */ color: oklch(61.9% 0.205 300.1);
Tailwind
colors: {
  custom: {
    50: '#bd8ff3',
    500: '#9b5fec',
    950: '#000000',
  },
}
SCSS
$custom: #9b5fec;
$custom-light: #bd8ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5fec",
  "rgb": {
    "r": 155,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 265.532,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.20485,
    "h": 300.1
  },
  "luminance": 0.21209
}

Semantic roles & 50–950 ramp

primary
#9B5FEC
secondary
#D7EBBB
accent
#DB0A82
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9B5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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