#9C5FDA#9C5FDA

#9C5FDA is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.8% C 0.184 H 304.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9C5FDA
RGBrgb(156, 95, 218)
HSLhsl(270, 62%, 61%)
HSVhsv(270, 56%, 85%)
CMYKcmyk(28.4%, 56.4%, 0%, 14.5%)
CIE-LABlab(52.19, 48.22, -53.91)
CIE-LCHlch(52.19, 72.33, 311.81°)
OKLaboklab(60.83% 0.104 -0.1521)
OKLCHoklch(60.83% 0.184 304.4)
XYZxyz(30.4546, 20.3144, 68.6327)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5FDA #9DDA5F
analogous
#5F60DA #9C5FDA #DA5FDA
triadic
#9C5FDA #DA9C5F #5FDA9C
tetradic
#9C5FDA #DA5F60 #9DDA5F #5FDADA
square
#9C5FDA #DA5F60 #9DDA5F #5FDADA
split-complementary
#9C5FDA #DADA5F #60DA5F
monochromatic
#5F249B #7D2FCD #9C5FDA #BB91E5 #DAC2F1

Accessibility & contrast

On white

4.15
#9C5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9C5FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5FDA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5FDA#FFFFFF#000000##000000
##9C5FDA1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7BDE
Deuteranopia (green-blind)
#467DD7
Tritanopia (blue-blind)
#917793
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9c5fda;
/* rgb */ color: rgb(156, 95, 218);
/* oklch */ color: oklch(60.8% 0.184 304.4);
Tailwind
colors: {
  custom: {
    50: '#bd8fe6',
    500: '#9c5fda',
    950: '#000000',
  },
}
SCSS
$custom: #9c5fda;
$custom-light: #bd8fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5fda",
  "rgb": {
    "r": 156,
    "g": 95,
    "b": 218
  },
  "hsl": {
    "h": 269.756,
    "s": 62.437,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60826,
    "c": 0.18429,
    "h": 304.4
  },
  "luminance": 0.20314
}

Semantic roles & 50–950 ramp

primary
#9C5FDA
secondary
#CBE1B3
accent
#CA1B73
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9C5FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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