#9B5CD2#9B5CD2

#9B5CD2 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.179 H 306.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9B5CD2
RGBrgb(155, 92, 210)
HSLhsl(272, 57%, 59%)
HSVhsv(272, 56%, 82%)
CMYKcmyk(26.2%, 56.2%, 0%, 17.6%)
CIE-LABlab(51.01, 47.68, -51.26)
CIE-LCHlch(51.01, 70.01, 312.93°)
OKLaboklab(59.78% 0.1064 -0.1444)
OKLCHoklch(59.78% 0.179 306.4)
XYZxyz(28.9751, 19.2763, 63.1545)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CD2 #93D25C
analogous
#605CD2 #9B5CD2 #D25CCE
triadic
#9B5CD2 #D29B5C #5CD29B
tetradic
#9B5CD2 #D2605C #93D25C #5CCED2
square
#9B5CD2 #D2605C #93D25C #5CCED2
split-complementary
#9B5CD2 #CED25C #5CD260
monochromatic
#5D278D #7D34BD #9B5CD2 #B88CDF #D6BCEC

Accessibility & contrast

On white

4.33
#9B5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#9B5CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CD2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CD2#FFFFFF#000000##000000
##9B5CD21.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3177D6
Deuteranopia (green-blind)
#487ACF
Tritanopia (blue-blind)
#92728E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9b5cd2;
/* rgb */ color: rgb(155, 92, 210);
/* oklch */ color: oklch(59.8% 0.179 306.4);
Tailwind
colors: {
  custom: {
    50: '#bc8de0',
    500: '#9b5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cd2;
$custom-light: #bc8de0;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cd2",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 272.034,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59783,
    "c": 0.17933,
    "h": 306.4
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#9B5CD2
secondary
#C3DCAE
accent
#E0488F
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9B5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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