#402ee2
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 | #402ee2 | |
| RGB | rgb(64 46 226) | |
| HSL | hsl(246 75.63% 53.33%) | |
| OKLCH | oklch(0.47 0.25 274.95) | |
| CMYK | cmyk(71.68% 79.65% 0% 11.37%) | |
| Android | #ff402ee2 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
7.75:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
2.70: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="#402ee2"
Gradient stop
<stop stop-color="#402ee2"/>
CSS variable + fill
:root { --c: #402ee2; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #402ee2; background-color: #402ee2; bg-[#402ee2]