Skip to content
Vectorlight.net

#f046fa

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#f046fa
RGB
240, 70, 250
HSL
296.67°, 94.74%, 62.75%
OKLCH
0.7 0.28 325.58
Names
—
Lists

Codes

FormatValue
HEX#f046fa
RGBrgb(240 70 250)
HSLhsl(296.67 94.74% 62.75%)
OKLCHoklch(0.7 0.28 325.58)
CMYKcmyk(4% 72% 0% 1.96%)
Android#fff046fa

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.01:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.96:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#f046fa"
Gradient stop
<stop stop-color="#f046fa"/>
CSS variable + fill
:root { --c: #f046fa; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #f046fa;
background-color: #f046fa;
bg-[#f046fa]