#9C40CF#9C40CF

#9C40CF is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.215 H 310.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9C40CF
RGBrgb(156, 64, 207)
HSLhsl(279, 60%, 53%)
HSVhsv(279, 69%, 81%)
CMYKcmyk(24.6%, 69.1%, 0%, 18.8%)
CIE-LABlab(45.96, 60.81, -57.64)
CIE-LCHlch(45.96, 83.79, 316.54°)
OKLaboklab(56.09% 0.1406 -0.1629)
OKLCHoklch(56.09% 0.215 310.8)
XYZxyz(26.8040, 15.2403, 60.5491)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C40CF #73CF40
analogous
#5440CF #9C40CF #CF40BB
triadic
#9C40CF #CF9C40 #40CF9C
tetradic
#9C40CF #CF5440 #73CF40 #40BBCF
square
#9C40CF #CF5440 #73CF40 #40BBCF
split-complementary
#9C40CF #BBCF40 #40CF54
monochromatic
#571E77 #7B2AA8 #9C40CF #B571DB #CFA2E8

Accessibility & contrast

On white

5.19
#9C40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9C40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C40CF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C40CF#FFFFFF#000000##FFFFFF
##9C40CF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2B6ECC
Tritanopia (blue-blind)
#955F83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9c40cf;
/* rgb */ color: rgb(156, 64, 207);
/* oklch */ color: oklch(56.1% 0.215 310.8);
Tailwind
colors: {
  custom: {
    50: '#be7cde',
    500: '#9c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9c40cf;
$custom-light: #be7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9c40cf",
  "rgb": {
    "r": 156,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 278.601,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56095,
    "c": 0.2152,
    "h": 310.8
  },
  "luminance": 0.1524
}

Semantic roles & 50–950 ramp

primary
#9C40CF
secondary
#ADD497
accent
#E3457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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