#9C5FEC#9C5FEC

#9C5FEC is a mid, highly saturated violet. Relative luminance 0.213; OKLCH L 62.0% C 0.205 H 300.4°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9C5FEC
RGBrgb(156, 95, 236)
HSLhsl(266, 79%, 65%)
HSVhsv(266, 60%, 93%)
CMYKcmyk(33.9%, 59.7%, 0%, 7.5%)
CIE-LABlab(53.29, 52.56, -62.30)
CIE-LCHlch(53.29, 81.51, 310.16°)
OKLaboklab(61.98% 0.1039 -0.1767)
OKLCHoklch(61.98% 0.205 300.4)
XYZxyz(32.9392, 21.3082, 81.7182)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C5FEC #AFEC5F
analogous
#5F69EC #9C5FEC #E25FEC
triadic
#9C5FEC #EC9C5F #5FEC9C
tetradic
#9C5FEC #EC5F69 #AFEC5F #5FECE2
square
#9C5FEC #EC5F69 #AFEC5F #5FECE2
split-complementary
#9C5FEC #ECE25F #69EC5F
monochromatic
#5D16BA #7A28E6 #9C5FEC #BE96F2 #E0CCF9

Accessibility & contrast

On white

3.99
#9C5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#9C5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C5FEC
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C5FEC#FFFFFF#000000##000000
##9C5FEC1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF1
Deuteranopia (green-blind)
#307EE9
Tritanopia (blue-blind)
#8B7D9D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9c5fec;
/* rgb */ color: rgb(156, 95, 236);
/* oklch */ color: oklch(62.0% 0.205 300.4);
Tailwind
colors: {
  custom: {
    50: '#be8ff3',
    500: '#9c5fec',
    950: '#000000',
  },
}
SCSS
$custom: #9c5fec;
$custom-light: #be8ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c5fec",
  "rgb": {
    "r": 156,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 265.957,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61977,
    "c": 0.20501,
    "h": 300.4
  },
  "luminance": 0.21308
}

Semantic roles & 50–950 ramp

primary
#9C5FEC
secondary
#D7EBBB
accent
#DB0A81
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9C5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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