Color #7e1f9c
A moderately saturated dark purple.
Conversions
#7e1f9c
rgb(126, 31, 156)
hsl(285.6, 66.8%, 36.7%)
hsv(285.6, 80.1%, 61.2%)
cmyk(19.2%, 80.1%, 0%, 38.8%)
lab(33.6, 56.98, -47.68)
lch(33.6, 74.3, 320.08)
oklch(45.3%, 0.1945, 316.25)
hwb(285.6, 12.2%, 38.8%)
Harmony colors
Accessibility
White text reads better on this background (8.19:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#63628a · ΔE 20
Deuteranopia
#676c86 · ΔE 23.5
Tritanopia
#7b7a76 · ΔE 35.3
Achromatopsia
#4f4f4f · ΔE 27.9
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #7e1f9c;
bg-[#7e1f9c]
Related colors
Frequently asked questions
#7e1f9c (#7e1f9c) is rgb(126, 31, 156) in RGB.
No, #7e1f9c 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 #7e1f9c, or check how it holds up for accessibility.