Color #0c0512
A moderately saturated very dark purple.
Conversions
#0c0512
rgb(12, 5, 18)
hsl(272.3, 56.5%, 4.5%)
hsv(272.3, 72.2%, 7.1%)
cmyk(33.3%, 72.2%, 0%, 92.9%)
lab(2.08, 3.94, -4.99)
lch(2.08, 6.36, 308.29)
oklch(13.6%, 0.0321, 309.05)
hwb(272.3, 2%, 92.9%)
Harmony colors
Accessibility
White text reads better on this background (20.08:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#09090f · ΔE 4.2
Deuteranopia
#090a0f · ΔE 4.9
Tritanopia
#0c0d0d · ΔE 7
Achromatopsia
#080808 · ΔE 6.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #0c0512;
bg-[#0c0512]
Related colors
Frequently asked questions
#0c0512 (#0c0512) is rgb(12, 5, 18) in RGB.
No, #0c0512 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #0c0512, or check how it holds up for accessibility.