kakoune plugin, that displays color previews inline/after target string/in gutter.
For now supported formats are #rgb,#rgba, #rrggbb and #rrggbbaa.
Having Nim installed just do nimble install colorcol.
Then in your kakrc add evaluate-commands %sh{ colorcol }.
Now you can use colorcol-enable to activate the plugin and colorcol-refresh/colorcol-refresh-on-save/colorcol-refresh-continuous to recolor buffer manually/on save/as you type.
You can change color display mode with colorcol-mode background/foreground/append/flag.
evaluate-commands %sh{ colorcol }
hook global WinCreate .* %{
colorcol-enable
colorcol-refresh-continuous
}