#a398fd
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 | #a398fd | |
| RGB | rgb(163 152 253) | |
| HSL | hsl(246.53 96.19% 79.41%) | |
| OKLCH | oklch(0.73 0.14 287.26) | |
| CMYK | cmyk(35.57% 39.92% 0% 0.78%) | |
| Android | #ffa398fd |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.48:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
8.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="#a398fd"
Gradient stop
<stop stop-color="#a398fd"/>
CSS variable + fill
:root { --c: #a398fd; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #a398fd; background-color: #a398fd; bg-[#a398fd]