#9B5CEC#9B5CEC

#9B5CEC is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.5% C 0.209 H 300.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9B5CEC
RGBrgb(155, 92, 236)
HSLhsl(266, 79%, 64%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.3%, 61%, 0%, 7.5%)
CIE-LABlab(52.60, 53.90, -63.41)
CIE-LCHlch(52.60, 83.22, 310.36°)
OKLaboklab(61.45% 0.1061 -0.18)
OKLCHoklch(61.45% 0.209 300.5)
XYZxyz(32.4814, 20.6788, 81.6208)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CEC #ADEC5C
analogous
#5C65EC #9B5CEC #E35CEC
triadic
#9B5CEC #EC9B5C #5CEC9B
tetradic
#9B5CEC #EC5C65 #ADEC5C #5CECE3
square
#9B5CEC #EC5C65 #ADEC5C #5CECE3
split-complementary
#9B5CEC #ECE35C #65EC5C
monochromatic
#5D15B8 #7925E6 #9B5CEC #BD93F2 #DECAF9

Accessibility & contrast

On white

4.09
#9B5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9B5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CEC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CEC#FFFFFF#000000##000000
##9B5CEC1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#287DE9
Tritanopia (blue-blind)
#8A7B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5cec;
/* rgb */ color: rgb(155, 92, 236);
/* oklch */ color: oklch(61.5% 0.209 300.5);
Tailwind
colors: {
  custom: {
    50: '#bd8df3',
    500: '#9b5cec',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cec;
$custom-light: #bd8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cec",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 266.25,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61451,
    "c": 0.20896,
    "h": 300.5
  },
  "luminance": 0.20679
}

Semantic roles & 50–950 ramp

primary
#9B5CEC
secondary
#D5EBB9
accent
#DB0A80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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