#9C5BE5#9C5BE5

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

Color values

HEX#9C5BE5
RGBrgb(156, 91, 229)
HSLhsl(268, 73%, 63%)
HSVhsv(268, 60%, 90%)
CMYKcmyk(31.9%, 60.3%, 0%, 10.2%)
CIE-LABlab(52.07, 52.94, -60.32)
CIE-LCHlch(52.07, 80.26, 311.27°)
OKLaboklab(60.95% 0.1088 -0.1709)
OKLCHoklch(60.95% 0.203 302.5)
XYZxyz(31.5910, 20.2072, 76.3496)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5BE5 #A4E55B
analogous
#5B5FE5 #9C5BE5 #E15BE5
triadic
#9C5BE5 #E59C5B #5BE59C
tetradic
#9C5BE5 #E55B5F #A4E55B #5BE5E1
square
#9C5BE5 #E55B5F #A4E55B #5BE5E1
split-complementary
#9C5BE5 #E5E15B #5FE55B
monochromatic
#5F1BAB #7C26DD #9C5BE5 #BC90ED #DCC5F6

Accessibility & contrast

On white

4.17
#9C5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#9C5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5BE5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5BE5#FFFFFF#000000##000000
##9C5BE51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#017BE9
Deuteranopia (green-blind)
#337CE2
Tritanopia (blue-blind)
#8E7898
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9c5be5;
/* rgb */ color: rgb(156, 91, 229);
/* oklch */ color: oklch(61.0% 0.203 302.5);
Tailwind
colors: {
  custom: {
    50: '#be8cee',
    500: '#9c5be5',
    950: '#000000',
  },
}
SCSS
$custom: #9c5be5;
$custom-light: #be8cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5be5",
  "rgb": {
    "r": 156,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 268.261,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60952,
    "c": 0.20261,
    "h": 302.5
  },
  "luminance": 0.20207
}

Semantic roles & 50–950 ramp

primary
#9C5BE5
secondary
#CFE7B5
accent
#D51178
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9C5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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