Color #7f7997
A nearly neutral, gray-leaning medium blue.
Conversions
#7f7997
rgb(127, 121, 151)
hsl(252, 12.6%, 53.3%)
hsv(252, 19.9%, 59.2%)
cmyk(15.9%, 19.9%, 0%, 40.8%)
lab(52.31, 8.67, -15.33)
lch(52.31, 17.61, 299.49)
oklch(59.2%, 0.0457, 294.15)
hwb(252, 47.5%, 40.8%)
Harmony colors
Accessibility
Black text reads better on this background (5.08:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#7c7c90 · ΔE 4.7
Deuteranopia
#7d7d8f · ΔE 5.5
Tritanopia
#7f8b8a · ΔE 18.1
Achromatopsia
#7d7d7d · ΔE 13.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #7f7997;
bg-[#7f7997]
Related colors
Frequently asked questions
#7f7997 (#7f7997) is rgb(127, 121, 151) in RGB.
No, #7f7997 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 #7f7997, or check how it holds up for accessibility.