Color #8a5297
A muted medium purple.
Conversions
#8a5297
rgb(138, 82, 151)
hsl(288.7, 29.6%, 45.7%)
hsv(288.7, 45.7%, 59.2%)
cmyk(8.6%, 45.7%, 0%, 40.8%)
lab(43.76, 35.2, -28.4)
lch(43.76, 45.23, 321.1)
oklch(53%, 0.1215, 319.87)
hwb(288.7, 32.2%, 40.8%)
Harmony colors
Accessibility
White text reads better on this background (5.62:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#76758a · ΔE 17.3
Deuteranopia
#797c87 · ΔE 21
Tritanopia
#887f7c · ΔE 25.7
Achromatopsia
#676767 · ΔE 23.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #8a5297;
bg-[#8a5297]
Related colors
Frequently asked questions
#8a5297 (#8a5297) is rgb(138, 82, 151) in RGB.
No, #8a5297 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 #8a5297, or check how it holds up for accessibility.