#9c8def
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 | #9c8def | |
| RGB | rgb(156 141 239) | |
| HSL | hsl(249.18 75.38% 74.51%) | |
| OKLCH | oklch(0.7 0.14 289.23) | |
| CMYK | cmyk(34.73% 41% 0% 6.27%) | |
| Android | #ff9c8def |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.81:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
7.46: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="#9c8def"
Gradient stop
<stop stop-color="#9c8def"/>
CSS variable + fill
:root { --c: #9c8def; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #9c8def; background-color: #9c8def; bg-[#9c8def]