Skip to content
Vectorlight.net

#cf228b

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

HEX
#cf228b
RGB
207, 34, 139
HSL
323.58°, 71.78%, 47.25%
OKLCH
0.58 0.22 349.96
Names
—
Lists

Codes

FormatValue
HEX#cf228b
RGBrgb(207 34 139)
HSLhsl(323.58 71.78% 47.25%)
OKLCHoklch(0.58 0.22 349.96)
CMYKcmyk(0% 83.57% 32.85% 18.82%)
Android#ffcf228b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

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="#cf228b"
Gradient stop
<stop stop-color="#cf228b"/>
CSS variable + fill
:root { --c: #cf228b; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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