Color #d798dc
A moderately saturated light magenta.
Conversions
#d798dc
rgb(215, 152, 220)
hsl(295.6, 49.3%, 72.9%)
hsv(295.6, 30.9%, 86.3%)
cmyk(2.3%, 30.9%, 0%, 13.7%)
lab(70.92, 34.72, -25.24)
lch(70.92, 42.92, 323.98)
oklch(76.3%, 0.117, 324.15)
hwb(295.6, 59.6%, 13.7%)
Harmony colors
Accessibility
Black text reads better on this background (9.41:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#bfbfce · ΔE 19.1
Deuteranopia
#c2c7cb · ΔE 19.1
Tritanopia
#d4c2c0 · ΔE 22.2
Achromatopsia
#aeaeae · ΔE 23.6
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #d798dc;
bg-[#d798dc]
Related colors
Frequently asked questions
#d798dc (#d798dc) is rgb(215, 152, 220) in RGB.
No, #d798dc 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 #d798dc, or check how it holds up for accessibility.