#9B5CCC#9B5CCC

#9B5CCC is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.4% C 0.172 H 308.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9B5CCC
RGBrgb(155, 92, 204)
HSLhsl(274, 52%, 58%)
HSVhsv(274, 55%, 80%)
CMYKcmyk(24%, 54.9%, 0%, 20%)
CIE-LABlab(50.67, 46.29, -48.38)
CIE-LCHlch(50.67, 66.95, 313.74°)
OKLaboklab(59.42% 0.1061 -0.1359)
OKLCHoklch(59.42% 0.172 308)
XYZxyz(28.2416, 18.9829, 59.2913)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CCC #8DCC5C
analogous
#635CCC #9B5CCC #CC5CC5
triadic
#9B5CCC #CC9B5C #5CCC9B
tetradic
#9B5CCC #CC635C #8DCC5C #5CC5CC
square
#9B5CCC #CC635C #8DCC5C #5CC5CC
split-complementary
#9B5CCC #C5CC5C #5CCC63
monochromatic
#5C2984 #7D38B3 #9B5CCC #B88BDB #D4B9E9

Accessibility & contrast

On white

4.38
#9B5CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#9B5CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CCC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CCC#FFFFFF#000000##000000
##9B5CCC1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3776D0
Deuteranopia (green-blind)
#4D79C9
Tritanopia (blue-blind)
#94708B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9b5ccc;
/* rgb */ color: rgb(155, 92, 204);
/* oklch */ color: oklch(59.4% 0.172 308.0);
Tailwind
colors: {
  custom: {
    50: '#bb8cdc',
    500: '#9b5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ccc;
$custom-light: #bb8cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ccc",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 273.75,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59422,
    "c": 0.17246,
    "h": 308
  },
  "luminance": 0.18982
}

Semantic roles & 50–950 ramp

primary
#9B5CCC
secondary
#BFD8AC
accent
#DC4C8B
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9B5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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