Skip to content
Vectorlight.net

#f02dbd

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

HEX
#f02dbd
RGB
240, 45, 189
HSL
315.69°, 86.67%, 55.88%
OKLCH
0.66 0.26 341.67
Names
—
Lists

Codes

FormatValue
HEX#f02dbd
RGBrgb(240 45 189)
HSLhsl(315.69 86.67% 55.88%)
OKLCHoklch(0.66 0.26 341.67)
CMYKcmyk(0% 81.25% 21.25% 5.88%)
Android#fff02dbd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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