#7874ea
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 | #7874ea | |
| RGB | rgb(120 116 234) | |
| HSL | hsl(242.03 73.75% 68.63%) | |
| OKLCH | oklch(0.62 0.17 281.63) | |
| CMYK | cmyk(48.72% 50.43% 0% 8.24%) | |
| Android | #ff7874ea |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
3.82:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
5.48: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="#7874ea"
Gradient stop
<stop stop-color="#7874ea"/>
CSS variable + fill
:root { --c: #7874ea; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #7874ea; background-color: #7874ea; bg-[#7874ea]