#4a56ef
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 | #4a56ef | |
| RGB | rgb(74 86 239) | |
| HSL | hsl(235.64 83.76% 61.37%) | |
| OKLCH | oklch(0.54 0.23 272.68) | |
| CMYK | cmyk(69.04% 64.02% 0% 6.27%) | |
| Android | #ff4a56ef |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
5.42:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.86:1
Fail AA normal text
Pass 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="#4a56ef"
Gradient stop
<stop stop-color="#4a56ef"/>
CSS variable + fill
:root { --c: #4a56ef; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #4a56ef; background-color: #4a56ef; bg-[#4a56ef]