#9B5CEF#9B5CEF

#9B5CEF is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.212 H 299.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9B5CEF
RGBrgb(155, 92, 239)
HSLhsl(266, 82%, 65%)
HSVhsv(266, 62%, 94%)
CMYKcmyk(35.1%, 61.5%, 0%, 6.3%)
CIE-LABlab(52.79, 54.63, -64.78)
CIE-LCHlch(52.79, 84.74, 310.14°)
OKLaboklab(61.65% 0.1059 -0.1841)
OKLCHoklch(61.65% 0.212 299.9)
XYZxyz(32.9209, 20.8546, 83.9355)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CEF #B0EF5C
analogous
#5C67EF #9B5CEF #E45CEF
triadic
#9B5CEF #EF9B5C #5CEF9B
tetradic
#9B5CEF #EF5C67 #B0EF5C #5CEFE4
square
#9B5CEF #EF5C67 #B0EF5C #5CEFE4
split-complementary
#9B5CEF #EFE45C #67EF5C
monochromatic
#5C13BE #7924EA #9B5CEF #BD94F4 #DFCBFA

Accessibility & contrast

On white

4.06
#9B5CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9B5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CEF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CEF#FFFFFF#000000##000000
##9B5CEF1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9b5cef;
/* rgb */ color: rgb(155, 92, 239);
/* oklch */ color: oklch(61.7% 0.212 299.9);
Tailwind
colors: {
  custom: {
    50: '#be8df5',
    500: '#9b5cef',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cef;
$custom-light: #be8df5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cef",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 265.714,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61653,
    "c": 0.21235,
    "h": 299.9
  },
  "luminance": 0.20855
}

Semantic roles & 50–950 ramp

primary
#9B5CEF
secondary
#D7ECBA
accent
#DF0782
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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