#9C5CDD#9C5CDD

#9C5CDD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.6% C 0.192 H 304.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9C5CDD
RGBrgb(156, 92, 221)
HSLhsl(270, 65%, 61%)
HSVhsv(270, 58%, 87%)
CMYKcmyk(29.4%, 58.4%, 0%, 13.3%)
CIE-LABlab(51.77, 50.51, -56.28)
CIE-LCHlch(51.77, 75.62, 311.91°)
OKLaboklab(60.58% 0.1078 -0.1591)
OKLCHoklch(60.58% 0.192 304.1)
XYZxyz(30.5857, 19.9428, 70.6306)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5CDD #9DDD5C
analogous
#5C5DDD #9C5CDD #DC5CDD
triadic
#9C5CDD #DD9C5C #5CDD9C
tetradic
#9C5CDD #DD5C5D #9DDD5C #5CDDDC
square
#9C5CDD #DD5C5D #9DDD5C #5CDDDC
split-complementary
#9C5CDD #DDDC5C #5DDD5C
monochromatic
#5F219E #7D2BD0 #9C5CDD #BB8FE8 #DAC1F2

Accessibility & contrast

On white

4.21
#9C5CDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9C5CDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5CDD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5CDD#FFFFFF#000000##000000
##9C5CDD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#217AE1
Deuteranopia (green-blind)
#3F7BDA
Tritanopia (blue-blind)
#907694
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9c5cdd;
/* rgb */ color: rgb(156, 92, 221);
/* oklch */ color: oklch(60.6% 0.192 304.1);
Tailwind
colors: {
  custom: {
    50: '#bd8de8',
    500: '#9c5cdd',
    950: '#000000',
  },
}
SCSS
$custom: #9c5cdd;
$custom-light: #bd8de8;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5cdd",
  "rgb": {
    "r": 156,
    "g": 92,
    "b": 221
  },
  "hsl": {
    "h": 269.767,
    "s": 65.482,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60577,
    "c": 0.19213,
    "h": 304.1
  },
  "luminance": 0.19943
}

Semantic roles & 50–950 ramp

primary
#9C5CDD
secondary
#CBE3B2
accent
#CD1873
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9C5CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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