Skip to content
Vectorlight.net

#f540b7

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

HEX
#f540b7
RGB
245, 64, 183
HSL
320.55°, 90.05%, 60.59%
OKLCH
0.67 0.24 345.29
Names
—
Lists

Codes

FormatValue
HEX#f540b7
RGBrgb(245 64 183)
HSLhsl(320.55 90.05% 60.59%)
OKLCHoklch(0.67 0.24 345.29)
CMYKcmyk(0% 73.88% 25.31% 3.92%)
Android#fff540b7

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
3.33:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
6.29: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="#f540b7"
Gradient stop
<stop stop-color="#f540b7"/>
CSS variable + fill
:root { --c: #f540b7; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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