Color #5f1256
A moderately saturated dark magenta.
Conversions
#5f1256
rgb(95, 18, 86)
hsl(307, 68.1%, 22.2%)
hsv(307, 81.1%, 37.3%)
cmyk(0%, 81.1%, 9.5%, 62.7%)
lab(22.08, 41.53, -21.9)
lch(22.08, 46.95, 332.2)
oklch(34.6%, 0.1344, 333.43)
hwb(307, 7.1%, 62.7%)
Harmony colors
Accessibility
White text reads better on this background (12.3:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#49494c · ΔE 24
Deuteranopia
#4d5149 · ΔE 34.1
Tritanopia
#5d4340 · ΔE 22
Achromatopsia
#353535 · ΔE 24.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5f1256;
bg-[#5f1256]
Related colors
Frequently asked questions
#5f1256 (#5f1256) is rgb(95, 18, 86) in RGB.
No, #5f1256 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 #5f1256, or check how it holds up for accessibility.