Color #7e2a96
A moderately saturated dark purple.
Conversions
#7e2a96
rgb(126, 42, 150)
hsl(286.7, 56.3%, 37.6%)
hsv(286.7, 72%, 58.8%)
cmyk(16%, 72%, 0%, 41.2%)
lab(34.59, 51.77, -42.43)
lch(34.59, 66.94, 320.66)
oklch(45.9%, 0.1771, 317.7)
hwb(286.7, 16.5%, 41.2%)
Harmony colors
Accessibility
White text reads better on this background (7.9:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#646486 · ΔE 19.7
Deuteranopia
#686d81 · ΔE 23
Tritanopia
#7b7773 · ΔE 32.6
Achromatopsia
#515151 · ΔE 26.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #7e2a96;
bg-[#7e2a96]
Related colors
Frequently asked questions
#7e2a96 (#7e2a96) is rgb(126, 42, 150) in RGB.
No, #7e2a96 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 #7e2a96, or check how it holds up for accessibility.