Color #51397b
A muted dark purple.
Conversions
#51397b
rgb(81, 57, 123)
hsl(261.8, 36.7%, 35.3%)
hsv(261.8, 53.7%, 48.2%)
cmyk(34.1%, 53.7%, 0%, 51.8%)
lab(29.68, 26.1, -33.92)
lch(29.68, 42.8, 307.58)
oklch(40.5%, 0.1086, 298.19)
hwb(261.8, 22.4%, 51.8%)
Harmony colors
Accessibility
White text reads better on this background (9.45:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#48486f · ΔE 8.1
Deuteranopia
#494b6c · ΔE 9.9
Tritanopia
#506562 · ΔE 26.4
Achromatopsia
#464646 · ΔE 22.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #51397b;
bg-[#51397b]
Related colors
Frequently asked questions
#51397b (#51397b) is rgb(81, 57, 123) in RGB.
No, #51397b 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 #51397b, or check how it holds up for accessibility.