#9C5DED#9C5DED

#9C5DED is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.8% C 0.209 H 300.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9C5DED
RGBrgb(156, 93, 237)
HSLhsl(266, 80%, 65%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.2%, 60.8%, 0%, 7.1%)
CIE-LABlab(52.96, 53.84, -63.38)
CIE-LCHlch(52.96, 83.16, 310.35°)
OKLaboklab(61.76% 0.1062 -0.1799)
OKLCHoklch(61.76% 0.209 300.5)
XYZxyz(32.9070, 21.0108, 82.4262)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5DED #AEED5D
analogous
#5D66ED #9C5DED #E45DED
triadic
#9C5DED #ED9C5D #5DED9C
tetradic
#9C5DED #ED5D66 #AEED5D #5DEDE4
square
#9C5DED #ED5D66 #AEED5D #5DEDE4
split-complementary
#9C5DED #EDE45D #66ED5D
monochromatic
#5D15BB #7A26E7 #9C5DED #BE94F3 #DFCBF9

Accessibility & contrast

On white

4.04
#9C5DED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9C5DED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5DED
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5DED#FFFFFF#000000##000000
##9C5DED1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF2
Deuteranopia (green-blind)
#2A7EEA
Tritanopia (blue-blind)
#8B7C9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9c5ded;
/* rgb */ color: rgb(156, 93, 237);
/* oklch */ color: oklch(61.8% 0.209 300.5);
Tailwind
colors: {
  custom: {
    50: '#be8ef4',
    500: '#9c5ded',
    950: '#000000',
  },
}
SCSS
$custom: #9c5ded;
$custom-light: #be8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5ded",
  "rgb": {
    "r": 156,
    "g": 93,
    "b": 237
  },
  "hsl": {
    "h": 266.25,
    "s": 80,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61761,
    "c": 0.2089,
    "h": 300.5
  },
  "luminance": 0.21011
}

Semantic roles & 50–950 ramp

primary
#9C5DED
secondary
#D6ECBA
accent
#DC0980
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9C5DED

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

Preview Lab → · Contrast checker → · Palette generator →

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