#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 |
|---|---|
| RGB | rgb(156, 64, 207) |
| HSL | hsl(279, 60%, 53%) |
| HSV | hsv(279, 69%, 81%) |
| CMYK | cmyk(24.6%, 69.1%, 0%, 18.8%) |
| CIE-LAB | lab(45.96, 60.81, -57.64) |
| CIE-LCH | lch(45.96, 83.79, 316.54°) |
| OKLab | oklab(56.09% 0.1406 -0.1629) |
| OKLCH | oklch(56.09% 0.215 310.8) |
| XYZ | xyz(26.8040, 15.2403, 60.5491) |
| Luminance | 0.1524 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.67
Purply
#983FB2
ΔE00 4.65
Vibrant Purple
#AD03DE
ΔE00 4.91
Blueviolet
#8A2BE2
ΔE00 5.78
Lightish Purple
#A552E6
ΔE00 5.86
Violet (survey)
#9A0EEA
ΔE00 5.96
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 |
|---|---|---|---|---|
| ##9C40CF | 1.00 | 5.19 | 4.05 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.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