#9C5CE3#9C5CE3

#9C5CE3 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 61.0% C 0.199 H 302.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9C5CE3
RGBrgb(156, 92, 227)
HSLhsl(268, 71%, 63%)
HSVhsv(268, 59%, 89%)
CMYKcmyk(31.3%, 59.5%, 0%, 11%)
CIE-LABlab(52.14, 51.94, -59.08)
CIE-LCHlch(52.14, 78.67, 311.32°)
OKLaboklab(60.96% 0.1077 -0.1673)
OKLCHoklch(60.96% 0.199 302.8)
XYZxyz(31.3994, 20.2683, 74.9161)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5CE3 #A3E35C
analogous
#5C60E3 #9C5CE3 #DF5CE3
triadic
#9C5CE3 #E39C5C #5CE39C
tetradic
#9C5CE3 #E35C60 #A3E35C #5CE3DF
square
#9C5CE3 #E35C60 #A3E35C #5CE3DF
split-complementary
#9C5CE3 #E3DF5C #60E35C
monochromatic
#5F1DA8 #7C28DA #9C5CE3 #BC90EC #DBC4F5

Accessibility & contrast

On white

4.16
#9C5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9C5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5CE3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5CE3#FFFFFF#000000##000000
##9C5CE31.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#127BE7
Deuteranopia (green-blind)
#387CE0
Tritanopia (blue-blind)
#8E7897
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9c5ce3;
/* rgb */ color: rgb(156, 92, 227);
/* oklch */ color: oklch(61.0% 0.199 302.8);
Tailwind
colors: {
  custom: {
    50: '#bd8dec',
    500: '#9c5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #9c5ce3;
$custom-light: #bd8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5ce3",
  "rgb": {
    "r": 156,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 268.444,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60962,
    "c": 0.19894,
    "h": 302.8
  },
  "luminance": 0.20268
}

Semantic roles & 50–950 ramp

primary
#9C5CE3
secondary
#CFE6B5
accent
#D31378
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9C5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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