#9C5DE5#9C5DE5

#9C5DE5 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.2% C 0.200 H 302.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9C5DE5
RGBrgb(156, 93, 229)
HSLhsl(268, 72%, 63%)
HSVhsv(268, 59%, 90%)
CMYKcmyk(31.9%, 59.4%, 0%, 10.2%)
CIE-LABlab(52.46, 51.90, -59.70)
CIE-LCHlch(52.46, 79.11, 311.01°)
OKLaboklab(61.23% 0.1064 -0.1691)
OKLCHoklch(61.23% 0.2 302.2)
XYZxyz(31.7642, 20.5537, 76.4074)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5DE5 #A6E55D
analogous
#5D62E5 #9C5DE5 #E05DE5
triadic
#9C5DE5 #E59C5D #5DE59C
tetradic
#9C5DE5 #E55D62 #A6E55D #5DE5E0
square
#9C5DE5 #E55D62 #A6E55D #5DE5E0
split-complementary
#9C5DE5 #E5E05D #62E55D
monochromatic
#5E1CAC #7C28DD #9C5DE5 #BC92ED #DCC6F6

Accessibility & contrast

On white

4.11
#9C5DE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9C5DE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5DE5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5DE5#FFFFFF#000000##000000
##9C5DE51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#107CE9
Deuteranopia (green-blind)
#377DE2
Tritanopia (blue-blind)
#8E7998
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9c5de5;
/* rgb */ color: rgb(156, 93, 229);
/* oklch */ color: oklch(61.2% 0.200 302.2);
Tailwind
colors: {
  custom: {
    50: '#bd8eee',
    500: '#9c5de5',
    950: '#000000',
  },
}
SCSS
$custom: #9c5de5;
$custom-light: #bd8eee;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5de5",
  "rgb": {
    "r": 156,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 267.794,
    "s": 72.34,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61234,
    "c": 0.19981,
    "h": 302.2
  },
  "luminance": 0.20554
}

Semantic roles & 50–950 ramp

primary
#9C5DE5
secondary
#D1E7B7
accent
#D4117A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9C5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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