#9A40D7#9A40D7
#9A40D7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.222 H 308.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #9A40D7 |
|---|---|
| RGB | rgb(154, 64, 215) |
| HSL | hsl(276, 65%, 55%) |
| HSV | hsv(276, 70%, 84%) |
| CMYK | cmyk(28.4%, 70.2%, 0%, 15.7%) |
| CIE-LAB | lab(46.24, 62.13, -61.80) |
| CIE-LCH | lch(46.24, 87.63, 315.16°) |
| OKLab | oklab(56.41% 0.137 -0.1752) |
| OKLCH | oklch(56.41% 0.222 308) |
| XYZ | xyz(27.4230, 15.4435, 65.8131) |
| Luminance | 0.1544 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.10
Vibrant Purple
#AD03DE
ΔE00 4.95
Blueviolet
#8A2BE2
ΔE00 5.05
Violet (survey)
#9A0EEA
ΔE00 5.35
Electric Purple
#AA23FF
ΔE00 5.36
Lightish Purple
#A552E6
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A40D7 #7DD740
analogous
#4F40D7 #9A40D7 #D740C8
triadic
#9A40D7 #D79A40 #40D79A
tetradic
#9A40D7 #D74F40 #7DD740 #40C8D7
square
#9A40D7 #D74F40 #7DD740 #40C8D7
split-complementary
#9A40D7 #C8D740 #40D74F
monochromatic
#581B81 #7B26B4 #9A40D7 #B573E2 #D0A5EC
Accessibility & contrast
On white
5.14
#9A40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#9A40D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A40D7
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A40D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A40D7 | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#166ED4
Tritanopia (blue-blind)
#906287
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #9a40d7; /* rgb */ color: rgb(154, 64, 215); /* oklch */ color: oklch(56.4% 0.222 308.0);
Tailwind
colors: {
custom: {
50: '#bd7ce4',
500: '#9a40d7',
950: '#000000',
},
}SCSS
$custom: #9a40d7; $custom-light: #bd7ce4; $custom-dark: #000000;
JSON
{
"hex": "#9a40d7",
"rgb": {
"r": 154,
"g": 64,
"b": 215
},
"hsl": {
"h": 275.762,
"s": 65.368,
"l": 54.706
},
"oklch": {
"l": 0.56406,
"c": 0.22243,
"h": 308
},
"luminance": 0.15443
}Semantic roles & 50–950 ramp
primary
#9A40D7
secondary
#B3D99A
accent
#E83F84
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84