More
More
#D04498 colour
#D04498: RGB 208, 68, 152, HSL 324, 60%, 54%. Black text passes AA (4.96:1), white passes AA for large text (4.23:1). Tints, shades and palettes.
- Nearest CSS name
mediumvioletred#c71585 (not an exact match)- Described as
- a muted magenta
- Red, green, blue
- 208, 68, 152
- Web safe
- No
- Luminance
- 0.1981 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #d04498 | |
|---|---|---|
| RGB | rgb(208, 68, 152) | |
| RGB (percent) | rgb(81.6% 26.7% 59.6%) | |
| HSL | hsl(324, 59.8%, 54.1%) | |
| HSV / HSB | hsv(324, 67.3%, 81.6%) | |
| HWB | hwb(324 26.7% 18.4%) | |
| CMYK (naive) | cmyk(0%, 67%, 27%, 18%) | |
| CIELAB (D50) | lab(51.93% 61.21 -15.14) | |
| OKLCH | oklch(60.86% 0.1944 347.46) | |
| Decimal | 13649048 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 4.23:1 | Fail | Pass | Fail | Fail |
| Black | 4.96:1 | Pass | Pass | Fail | Pass |
Black text is the better choice on #D04498 (4.96:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
CSS
| Text colour | color: #d04498; | |
|---|---|---|
| Background | background-color: #d04498; | |
| Border | border: 1px solid #d04498; | |
| Half transparent | background-color: rgb(208 68 152 / 50%); | |
| Custom property | --colour-main: #d04498; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #d04498, #7d295b); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #e38fc1, #d04498); | |
| Text on this colour | background-color: #d04498; color: #000; |
Similar named colours
mediumvioletred#c71585, distance 6.2deeppink#ff1493, distance 9palevioletred#db7093, distance 9.7mediumorchid#ba55d3, distance 9.9indianred#cd5c5c, distance 11.2orchid#da70d6, distance 11.3#44d07cComplement of #D04498
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #D04498 to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.