#df038f
a dark, electric magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #df038f is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #df038f |
| RGB | rgb(223, 3, 143) |
| HSL | hsl(322, 97%, 44%) |
| CMYK | cmyk(0%, 99%, 36%, 13%) |
| LAB | lab(49.2 78.9 -14.1) |
| LCH | lch(49.2 80.1 349.9) |
| OKLCH | oklch(0.595 0.246 351.4) |
| Decimal | 14615439 |
| Display P3 | color(display-p3 0.875 0.012 0.561) |
Copy-ready code
/* CSS */
color: #df038f;
background-color: #df038f;
/* Tailwind (arbitrary) */
class="text-[#df038f] bg-[#df038f]"
/* SCSS */
$brand: #df038f;
/* SwiftUI */
Color(red: 0.875, green: 0.012, blue: 0.561)
/* Android */
Color.parseColor("#df038f")
/* Flutter */
Color(0xFFDF038F)
/* Python / OpenCV (BGR) */
(143, 3, 223)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #df038f is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FDF1F9;
--brand-100: #FCE4F3;
--brand-200: #FBC1E6;
--brand-300: #FD90D6;
--brand-400: #FD59C1;
--brand-500: #FC22AD;
--brand-600: #df038f;
--brand-700: #C90381;
--brand-800: #A10267;
--brand-900: #74064C;
--brand-950: #480430;
--brand: #df038f;
--brand-ink: #ffffff;
}Colors that work with #df038f
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #df038f
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black text placed on it
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #03DF53 | Directly opposite — maximum tension | |
| Analogous left | #C103DF | Neighbour, quieter | |
| Analogous right | #DF0321 | Neighbour, quieter | |
| Split-complement 1 | #21DF03 | Contrast without the clash | |
| Split-complement 2 | #03DFC1 | Contrast without the clash | |
| Triadic 1 | #8FDF03 | Even thirds — balanced and loud | |
| Triadic 2 | #038FDF | Even thirds — balanced and loud | |
| Tetradic | #DFC103 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#df038f text on a black background
contrast 4.55:1
#df038f text on a white background
contrast 4.62:1
CSS3 live lab
The quick brown fox
color: #df038f;
background-color: #df038f;
Glowing headline
text-shadow: 2px 2px 8px #df038f;
Soft neon halo
text-shadow: 0 0 14px rgba(223, 3, 143, 0.45);
box-shadow: 0 12px 32px -8px rgba(223, 3, 143, 0.45);
border: 3px solid #df038f; background: linear-gradient(135deg, #df038f, #DF0A03);
Monochromatic scale
Palettes built from #df038f
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Mulberry (#c54b8c) — ΔE2000 6.1 away, with its history, psychology and brand usage.
#df038f in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#df038f, answered
What color is #df038f?
#df038f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.7). It sits at 322° on the hue wheel with 97% saturation and 44% lightness, which reads as warm.
What is the RGB value of #df038f?
rgb(223, 3, 143) — 223 red, 3 green and 143 blue out of 255, or 87.5% / 1.2% / 56.1% by channel.
Is #df038f a light or a dark color?
It is a dark color. Relative luminance is 0.1774 and perceived brightness is 51%, so white text on it reaches 4.62:1.
Should I use black or white text on #df038f?
White. It scores 4.62:1 against #df038f, versus 4.55:1 for black — AA at any size.
What is the complementary color of #df038f?
#03DF53 sits directly opposite on the wheel. Softer options are the split-complements #21DF03 and #03DFC1, which give the same contrast with far less vibration.
What colors go well with #df038f?
For interface work: #FAF4F8 as the surface, #EDC0DC for borders, #9B4B7E for secondary text, #00CC17 as an accent and #7E0251 for hover and pressed states. For a palette, the analogous pair #C103DF and #DF0321 stays calm, while #03DF53 is the loudest partner.
What is #df038f in CMYK for printing?
cmyk(0%, 99%, 36%, 13%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #df038f warm or cool?
Warm — it scores 38 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF033E; nudged cooler, #E001E1.