#c040eb
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 | #c040eb | |
| RGB | rgb(192 64 235) | |
| HSL | hsl(284.91 81.04% 58.63%) | |
| OKLCH | oklch(0.63 0.25 316.03) | |
| CMYK | cmyk(18.3% 72.77% 0% 7.84%) | |
| Android | #ffc040eb |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.05:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.17:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#c040eb"
Gradient stop
<stop stop-color="#c040eb"/>
CSS variable + fill
:root { --c: #c040eb; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #c040eb; background-color: #c040eb; bg-[#c040eb]