Skip to content
Kolorvia
#12040f

Color #12040f

A moderately saturated very dark magenta.

Conversions

HEX
#12040f
RGB
rgb(18, 4, 15)
HSL
hsl(312.9, 63.6%, 4.3%)
HSV / HSB
hsv(312.9, 77.8%, 7.1%)
CMYK
cmyk(0%, 77.8%, 16.7%, 92.9%)
LAB
lab(2.26, 5.8, -2.97)
LCH
lch(2.26, 6.52, 332.88)
OKLCH
oklch(14%, 0.0365, 335.19)
HWB
hwb(312.9, 1.6%, 92.9%)

Harmony colors

Complementary

#041207

Analogous

#0e0412
#12040f
#120408

Triadic

#12040f
#0f1204
#040f12

Split-complementary

#12040f
#081204
#04120e

Tetradic

#12040f
#120704
#041207
#040f12

Square

#12040f
#120e04
#041207
#040812

Shades

Color #12040f mixed toward black.

#0f030c
#0c030a
#090207
#060105
#030102

Tints

Color #12040f mixed toward white.

#541346
#97227e
#d337b1
#e17acb
#f0bce5

Tones

Color #12040f mixed toward gray.

#11050e
#10060e
#0e070d
#0d090c
#0c0a0c

Accessibility

Aa White text on this color
20:1
Aa Black text on this color
1.05:1

White text reads better on this background (20:1). That passes WCAG AAA (≥7:1) for normal-size text.

Under color vision deficiencies

Protanopia

#0d0d0d · ΔE 7.7

Deuteranopia

#0e0f0c · ΔE 9.6

Tritanopia

#110b0a · ΔE 5.9

Achromatopsia

#080808 · ΔE 7.6

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #12040f;
Tailwind (arbitrary value)
bg-[#12040f]

Related colors

Medium Violet Red #c71585
Orchid #da70d6
Dark Magenta #8b008b
Fuchsia #ff00ff
Plum #dda0dd
Purple #800080

Frequently asked questions

#12040f (#12040f) is rgb(18, 4, 15) in RGB.

No, #12040f is not web-safe. The nearest web-safe colors are among its tones and shades below.

Related tools

Build something with this color

Generate a full palette from #12040f, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.