Skip to content
Vectorlight.net

#c31fac

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

HEX
#c31fac
RGB
195, 31, 172
HSL
308.41°, 72.57%, 44.31%
OKLCH
0.57 0.24 335.17
Names
—
Lists

Codes

FormatValue
HEX#c31fac
RGBrgb(195 31 172)
HSLhsl(308.41 72.57% 44.31%)
OKLCHoklch(0.57 0.24 335.17)
CMYKcmyk(0% 84.1% 11.79% 23.53%)
Android#ffc31fac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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