#9B5DEF#9B5DEF

#9B5DEF is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.8% C 0.211 H 299.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9B5DEF
RGBrgb(155, 93, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 61%, 94%)
CMYKcmyk(35.1%, 61.1%, 0%, 6.3%)
CIE-LABlab(52.98, 54.12, -64.47)
CIE-LCHlch(52.98, 84.17, 310.01°)
OKLaboklab(61.79% 0.1048 -0.1832)
OKLCHoklch(61.79% 0.211 299.8)
XYZxyz(33.0081, 21.0290, 83.9646)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5DEF #B1EF5D
analogous
#5D68EF #9B5DEF #E45DEF
triadic
#9B5DEF #EF9B5D #5DEF9B
tetradic
#9B5DEF #EF5D68 #B1EF5D #5DEFE4
square
#9B5DEF #EF5D68 #B1EF5D #5DEFE4
split-complementary
#9B5DEF #EFE45D #68EF5D
monochromatic
#5C13BF #7925E9 #9B5DEF #BD95F5 #E0CCFA

Accessibility & contrast

On white

4.03
#9B5DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#9B5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5DEF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5DEF#FFFFFF#000000##000000
##9B5DEF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#247DEC
Tritanopia (blue-blind)
#897D9E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9b5def;
/* rgb */ color: rgb(155, 93, 239);
/* oklch */ color: oklch(61.8% 0.211 299.8);
Tailwind
colors: {
  custom: {
    50: '#bd8ef5',
    500: '#9b5def',
    950: '#000000',
  },
}
SCSS
$custom: #9b5def;
$custom-light: #bd8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5def",
  "rgb": {
    "r": 155,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 265.479,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61792,
    "c": 0.211,
    "h": 299.8
  },
  "luminance": 0.21029
}

Semantic roles & 50–950 ramp

primary
#9B5DEF
secondary
#D8EDBB
accent
#DE0783
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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