Skip to content
Vectorlight.net

#ba1817

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

HEX
#ba1817
RGB
186, 24, 23
HSL
0.37°, 77.99%, 40.98%
OKLCH
0.5 0.19 28.06
Names
—
Lists

Codes

FormatValue
HEX#ba1817
RGBrgb(186 24 23)
HSLhsl(0.37 77.99% 40.98%)
OKLCHoklch(0.5 0.19 28.06)
CMYKcmyk(0% 87.1% 87.63% 27.06%)
Android#ffba1817

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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