#d7afff
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 | #d7afff | |
| RGB | rgb(215 175 255) | |
| HSL | hsl(270 100% 84.31%) | |
| OKLCH | oklch(0.82 0.12 306.84) | |
| CMYK | cmyk(15.69% 31.37% 0% 0%) | |
| Android | #ffd7afff |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
1.83:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
11.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="#d7afff"
Gradient stop
<stop stop-color="#d7afff"/>
CSS variable + fill
:root { --c: #d7afff; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #d7afff; background-color: #d7afff; bg-[#d7afff]