#28186c
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 | #28186c | |
| RGB | rgb(40 24 108) | |
| HSL | hsl(251.43 63.64% 25.88%) | |
| OKLCH | oklch(0.29 0.14 282.87) | |
| CMYK | cmyk(62.96% 77.78% 0% 57.65%) | |
| Android | #ff28186c |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
14.60:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
1.43: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="#28186c"
Gradient stop
<stop stop-color="#28186c"/>
CSS variable + fill
:root { --c: #28186c; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #28186c; background-color: #28186c; bg-[#28186c]