Skip to content

#D798DC Color

#D798DC is rgb(215, 152, 220) in RGB, hsl(296, 49%, 73%) in HSL, and about cmyk(2%, 31%, 0%, 14%) in CMYK. It has no registered color name of its own — the closest is Medium Lavender Magenta (#DDA0DD), very hard to tell apart at ΔE 4.53. Black text is the more readable choice on this background.

#D798DC
HEX#D798DC
RGBrgb(215, 152, 220)
HSLhsl(296, 49%, 73%)
HSVhsv(296, 31%, 86%)
CMYKcmyk(2%, 31%, 0%, 14%)
OKLCHoklch(76.3% 0.117 324.1)
LABlab(70.85% 32.54 -25.08)
LCHlch(70.85% 41.08 322.38)

What #D798DC Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #D798DC, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every pink in the library.

#D798DC Channel Values

How #D798DC breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 215 · G 152 · B 2208-bit channels as sent to the display
HSLH 296° · S 49% · L 73%Easiest model for building lighter and darker variants
HSVH 296° · S 31% · V 86%Matches the picker in most design tools
CMYKC 2% · M 31% · Y 0% · K 14%Approximate ink mix; confirm with an ICC profile before printing
Luminance2.23:1 vs white · 9.41:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #D798DC background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

Fails AAWhite text2.23:1AA normal AA large AAA normal
TextBlack text9.41:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #D798DC in the contrast checker.

Colors That Go With #D798DC

Pairings derived from color-wheel relationships. The complementary color sits opposite #D798DC; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #D798DC

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #D798DC.

How #D798DC Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#D798DC
Protanopia#A5A5DC
Protanomaly#BBA0DC
Deuteranopia#B0B0DB
Deuteranomaly#C1A7DB
Tritanopia#D0A3A3
Tritanomaly#D39FBC
Achromatopsia#AEAEAE

Test a full palette in the color blindness simulator.

Using #D798DC in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-d798dc: #D798DC;
CSS backgroundbackground-color: #D798DC;
Tailwind configcolors: { 'color-d798dc': '#D798DC' }
SwiftUIColor(red: 0.843, green: 0.596, blue: 0.863)
Android XML<color name="color_d798dc">#D798DC</color>
SVG fillfill="#D798DC"

More Pink Colors

#D798DC sits in the pink family. These are its neighbours across that family's full range, each with its own breakdown.

#D798DC Frequently Asked Questions

What color is #D798DC?

#D798DC is a light pink — rgb(215, 152, 220) in RGB and hsl(296, 49%, 73%) in HSL. It carries no registered color name of its own; the closest named color is Medium Lavender Magenta (#DDA0DD), which is very hard to tell apart at a CIE76 distance of 4.53.

What is the RGB value of #D798DC?

#D798DC is rgb(215, 152, 220) — red 215, green 152, and blue 220 on the 0-255 scale.

What is the CMYK value of #D798DC?

#D798DC converts to approximately cmyk(2%, 31%, 0%, 14%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #D798DC be black or white?

Black text is the more readable choice. #D798DC scores 2.23:1 against white and 9.41:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #D798DC as a CSS color keyword?

No. #D798DC is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is plum (#DDA0DD) at a CIE76 distance of 4.53, which is very hard to tell apart.

Open #D798DC in a Tool

Keep exploring: every pink in the color library, the guide to shades of pink, or the full color library.