#9B5CE6#9B5CE6

#9B5CE6 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.202 H 301.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9B5CE6
RGBrgb(155, 92, 230)
HSLhsl(267, 73%, 63%)
HSVhsv(267, 60%, 90%)
CMYKcmyk(32.6%, 60%, 0%, 9.8%)
CIE-LABlab(52.21, 52.44, -60.66)
CIE-LCHlch(52.21, 80.18, 310.84°)
OKLaboklab(61.05% 0.1063 -0.1719)
OKLCHoklch(61.05% 0.202 301.7)
XYZxyz(31.6243, 20.3359, 77.1067)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CE6 #A7E65C
analogous
#5C62E6 #9B5CE6 #E05CE6
triadic
#9B5CE6 #E69B5C #5CE69B
tetradic
#9B5CE6 #E65C62 #A7E65C #5CE6E0
square
#9B5CE6 #E65C62 #A7E65C #5CE6E0
split-complementary
#9B5CE6 #E6E05C #62E65C
monochromatic
#5D1BAD #7A27DE #9B5CE6 #BC91EE #DCC6F6

Accessibility & contrast

On white

4.14
#9B5CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9B5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CE6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CE6#FFFFFF#000000##000000
##9B5CE61.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#017CEA
Deuteranopia (green-blind)
#327CE3
Tritanopia (blue-blind)
#8C7998
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5ce6;
/* rgb */ color: rgb(155, 92, 230);
/* oklch */ color: oklch(61.1% 0.202 301.7);
Tailwind
colors: {
  custom: {
    50: '#bd8def',
    500: '#9b5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ce6;
$custom-light: #bd8def;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ce6",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 267.391,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61052,
    "c": 0.20215,
    "h": 301.7
  },
  "luminance": 0.20336
}

Semantic roles & 50–950 ramp

primary
#9B5CE6
secondary
#D1E8B6
accent
#D6107B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9B5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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