#b897fa
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 | #b897fa | |
| RGB | rgb(184 151 250) | |
| HSL | hsl(260 90.83% 78.63%) | |
| OKLCH | oklch(0.74 0.14 298.22) | |
| CMYK | cmyk(26.4% 39.6% 0% 1.96%) | |
| Android | #ffb897fa |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.37:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
8.84: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="#b897fa"
Gradient stop
<stop stop-color="#b897fa"/>
CSS variable + fill
:root { --c: #b897fa; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #b897fa; background-color: #b897fa; bg-[#b897fa]