#9A40D9#9A40D9
#9A40D9 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.5% C 0.224 H 307.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #9A40D9 |
|---|---|
| RGB | rgb(154, 64, 217) |
| HSL | hsl(275, 67%, 55%) |
| HSV | hsv(275, 71%, 85%) |
| CMYK | cmyk(29%, 70.5%, 0%, 14.9%) |
| CIE-LAB | lab(46.37, 62.57, -62.72) |
| CIE-LCH | lch(46.37, 88.59, 314.93°) |
| OKLab | oklab(56.55% 0.1367 -0.1779) |
| OKLCH | oklch(56.55% 0.224 307.5) |
| XYZ | xyz(27.6816, 15.5469, 67.1748) |
| Luminance | 0.1555 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.30
Blueviolet
#8A2BE2
ΔE00 4.99
Vibrant Purple
#AD03DE
ΔE00 4.99
Electric Purple
#AA23FF
ΔE00 5.13
Lightish Purple
#A552E6
ΔE00 5.23
Violet (survey)
#9A0EEA
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A40D9 #7FD940
analogous
#4D40D9 #9A40D9 #D940CC
triadic
#9A40D9 #D99A40 #40D99A
tetradic
#9A40D9 #D94D40 #7FD940 #40CCD9
square
#9A40D9 #D94D40 #7FD940 #40CCD9
split-complementary
#9A40D9 #CCD940 #40D94D
monochromatic
#591A84 #7B24B7 #9A40D9 #B573E3 #D0A6ED
Accessibility & contrast
On white
5.11
#9A40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#9A40D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A40D9
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A40D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A40D9 | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0F6FD6
Tritanopia (blue-blind)
#906388
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #9a40d9; /* rgb */ color: rgb(154, 64, 217); /* oklch */ color: oklch(56.5% 0.224 307.5);
Tailwind
colors: {
custom: {
50: '#bd7ce6',
500: '#9a40d9',
950: '#000000',
},
}SCSS
$custom: #9a40d9; $custom-light: #bd7ce6; $custom-dark: #000000;
JSON
{
"hex": "#9a40d9",
"rgb": {
"r": 154,
"g": 64,
"b": 217
},
"hsl": {
"h": 275.294,
"s": 66.812,
"l": 55.098
},
"oklch": {
"l": 0.56548,
"c": 0.22438,
"h": 307.5
},
"luminance": 0.15547
}Semantic roles & 50–950 ramp
primary
#9A40D9
secondary
#B5DA9A
accent
#EA3E85
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84