Skip to content
Vectorlight.net

#0478ac

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

HEX
#0478ac
RGB
4, 120, 172
HSL
198.57°, 95.45%, 34.51%
OKLCH
0.54 0.12 237.7
Names
—
Lists

Codes

FormatValue
HEX#0478ac
RGBrgb(4 120 172)
HSLhsl(198.57 95.45% 34.51%)
OKLCHoklch(0.54 0.12 237.7)
CMYKcmyk(97.67% 30.23% 0% 32.55%)
Android#ff0478ac

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

color / background
color: #0478ac;
background-color: #0478ac;
bg-[#0478ac]