#b840db
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 | #b840db | |
| RGB | rgb(184 64 219) | |
| HSL | hsl(286.45 68.28% 55.49%) | |
| OKLCH | oklch(0.6 0.24 317.49) | |
| CMYK | cmyk(15.98% 70.78% 0% 14.12%) | |
| Android | #ffb840db |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.38:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.79: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="#b840db"
Gradient stop
<stop stop-color="#b840db"/>
CSS variable + fill
:root { --c: #b840db; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b840db; background-color: #b840db; bg-[#b840db]