#9A40CD#9A40CD
#9A40CD is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.213 H 310.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #9A40CD |
|---|---|
| RGB | rgb(154, 64, 205) |
| HSL | hsl(278, 59%, 53%) |
| HSV | hsv(278, 69%, 80%) |
| CMYK | cmyk(24.9%, 68.8%, 0%, 19.6%) |
| CIE-LAB | lab(45.56, 59.97, -57.15) |
| CIE-LCH | lch(45.56, 82.84, 316.38°) |
| OKLab | oklab(55.71% 0.1382 -0.1615) |
| OKLCH | oklch(55.71% 0.213 310.6) |
| XYZ | xyz(26.1772, 14.9452, 59.2515) |
| Luminance | 0.1494 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.44
Purply
#983FB2
ΔE00 4.39
Vibrant Purple
#AD03DE
ΔE00 5.03
Blueviolet
#8A2BE2
ΔE00 5.63
Violet (survey)
#9A0EEA
ΔE00 5.94
Lightish Purple
#A552E6
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A40CD #73CD40
analogous
#5440CD #9A40CD #CD40B9
triadic
#9A40CD #CD9A40 #40CD9A
tetradic
#9A40CD #CD5440 #73CD40 #40B9CD
square
#9A40CD #CD5440 #73CD40 #40B9CD
split-complementary
#9A40CD #B9CD40 #40CD54
monochromatic
#551E74 #792BA5 #9A40CD #B471DA #CDA1E6
Accessibility & contrast
On white
5.26
#9A40CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#9A40CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A40CD
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A40CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A40CD | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#2A6DCA
Tritanopia (blue-blind)
#935E82
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9a40cd; /* rgb */ color: rgb(154, 64, 205); /* oklch */ color: oklch(55.7% 0.213 310.6);
Tailwind
colors: {
custom: {
50: '#bc7cdd',
500: '#9a40cd',
950: '#000000',
},
}SCSS
$custom: #9a40cd; $custom-light: #bc7cdd; $custom-dark: #000000;
JSON
{
"hex": "#9a40cd",
"rgb": {
"r": 154,
"g": 64,
"b": 205
},
"hsl": {
"h": 278.298,
"s": 58.506,
"l": 52.745
},
"oklch": {
"l": 0.55709,
"c": 0.21262,
"h": 310.6
},
"luminance": 0.14945
}Semantic roles & 50–950 ramp
primary
#9A40CD
secondary
#ACD396
accent
#E2467E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120A15
muted
#817C83