#786cbd
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 | #786cbd | |
| RGB | rgb(120 108 189) | |
| HSL | hsl(248.89 38.03% 58.24%) | |
| OKLCH | oklch(0.58 0.12 288.78) | |
| CMYK | cmyk(36.51% 42.86% 0% 25.88%) | |
| Android | #ff786cbd |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.48:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.67: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="#786cbd"
Gradient stop
<stop stop-color="#786cbd"/>
CSS variable + fill
:root { --c: #786cbd; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #786cbd; background-color: #786cbd; bg-[#786cbd]