#9C40CE#9C40CE
#9C40CE is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.0% C 0.214 H 311.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #9C40CE |
|---|---|
| RGB | rgb(156, 64, 206) |
| HSL | hsl(279, 59%, 53%) |
| HSV | hsv(279, 69%, 81%) |
| CMYK | cmyk(24.3%, 68.9%, 0%, 19.2%) |
| CIE-LAB | lab(45.90, 60.60, -57.17) |
| CIE-LCH | lch(45.90, 83.31, 316.67°) |
| OKLab | oklab(56.03% 0.1407 -0.1615) |
| OKLCH | oklch(56.03% 0.214 311.1) |
| XYZ | xyz(26.6822, 15.1916, 59.9072) |
| Luminance | 0.1519 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.64
Purply
#983FB2
ΔE00 4.50
Vibrant Purple
#AD03DE
ΔE00 4.94
Blueviolet
#8A2BE2
ΔE00 5.85
Lightish Purple
#A552E6
ΔE00 5.96
Violet (survey)
#9A0EEA
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9C40CE #72CE40
analogous
#5540CE #9C40CE #CE40B9
triadic
#9C40CE #CE9C40 #40CE9C
tetradic
#9C40CE #CE5540 #72CE40 #40B9CE
square
#9C40CE #CE5540 #72CE40 #40B9CE
split-complementary
#9C40CE #B9CE40 #40CE55
monochromatic
#571E75 #7B2BA6 #9C40CE #B571DA #CEA1E7
Accessibility & contrast
On white
5.20
#9C40CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#9C40CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9C40CE
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9C40CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9C40CE | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D2
Deuteranopia (green-blind)
#2C6ECB
Tritanopia (blue-blind)
#965E82
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9c40ce; /* rgb */ color: rgb(156, 64, 206); /* oklch */ color: oklch(56.0% 0.214 311.1);
Tailwind
colors: {
custom: {
50: '#bd7cde',
500: '#9c40ce',
950: '#000000',
},
}SCSS
$custom: #9c40ce; $custom-light: #bd7cde; $custom-dark: #000000;
JSON
{
"hex": "#9c40ce",
"rgb": {
"r": 156,
"g": 64,
"b": 206
},
"hsl": {
"h": 278.873,
"s": 59.167,
"l": 52.941
},
"oklch": {
"l": 0.56027,
"c": 0.21422,
"h": 311.1
},
"luminance": 0.15191
}Semantic roles & 50–950 ramp
primary
#9C40CE
secondary
#ACD496
accent
#E2457D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83