#940dad
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #940dad | |
| RGB | rgb(148 13 173) | |
| HSL | hsl(290.63 86.02% 36.47%) | |
| OKLCH | oklch(0.49 0.23 319.97) | |
| CMYK | cmyk(14.45% 92.49% 0% 32.16%) | |
| Android | #ff940dad |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
7.19:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.92:1
Fail AA normal text
Fail AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#940dad"
Gradient stop
<stop stop-color="#940dad"/>
CSS variable + fill
:root { --c: #940dad; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #940dad; background-color: #940dad; bg-[#940dad]