#d6128e
a balanced, electric magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #d6128e 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 | #d6128e |
| RGB | rgb(214, 18, 142) |
| HSL | hsl(322, 85%, 46%) |
| CMYK | cmyk(0%, 92%, 34%, 16%) |
| LAB | lab(47.9 75.6 -15.7) |
| LCH | lch(47.9 77.2 348.3) |
| OKLCH | oklch(0.582 0.236 350.0) |
| Decimal | 14029454 |
| Display P3 | color(display-p3 0.839 0.071 0.557) |
Copy-ready code
/* CSS */
color: #d6128e;
background-color: #d6128e;
/* Tailwind (arbitrary) */
class="text-[#d6128e] bg-[#d6128e]"
/* SCSS */
$brand: #d6128e;
/* SwiftUI */
Color(red: 0.839, green: 0.071, blue: 0.557)
/* Android */
Color.parseColor("#d6128e")
/* Flutter */
Color(0xFFD6128E)
/* Python / OpenCV (BGR) */
(142, 18, 214)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. #d6128e 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: #FCF2F9;
--brand-100: #FAE6F2;
--brand-200: #F7C5E4;
--brand-300: #F697D4;
--brand-400: #F264BE;
--brand-500: #EE30A8;
--brand-600: #d6128e;
--brand-700: #BC107D;
--brand-800: #970D64;
--brand-900: #6D0E4A;
--brand-950: #44092E;
--brand: #d6128e;
--brand-ink: #ffffff;
}Colors that work with #d6128e
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 #d6128e
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #12D65A | Directly opposite — maximum tension | |
| Analogous left | #BC12D6 | Neighbour, quieter | |
| Analogous right | #D6122C | Neighbour, quieter | |
| Split-complement 1 | #2CD612 | Contrast without the clash | |
| Split-complement 2 | #12D6BC | Contrast without the clash | |
| Triadic 1 | #8ED612 | Even thirds — balanced and loud | |
| Triadic 2 | #128ED6 | Even thirds — balanced and loud | |
| Tetradic | #D6BC12 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#d6128e text on a black background
contrast 4.34:1
#d6128e text on a white background
contrast 4.84:1
CSS3 live lab
The quick brown fox
color: #d6128e;
background-color: #d6128e;
Glowing headline
text-shadow: 2px 2px 8px #d6128e;
Soft neon halo
text-shadow: 0 0 14px rgba(214, 18, 142, 0.45);
box-shadow: 0 12px 32px -8px rgba(214, 18, 142, 0.45);
border: 3px solid #d6128e; background: linear-gradient(135deg, #d6128e, #D61912);
Monochromatic scale
Palettes built from #d6128e
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 5.9 away, with its history, psychology and brand usage.
#d6128e 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.
#d6128e, answered
What color is #d6128e?
#d6128e is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 3.2). It sits at 322° on the hue wheel with 85% saturation and 46% lightness, which reads as warm.
What is the RGB value of #d6128e?
rgb(214, 18, 142) — 214 red, 18 green and 142 blue out of 255, or 83.9% / 7.1% / 55.7% by channel.
Is #d6128e a light or a dark color?
It is a dark color. Relative luminance is 0.1668 and perceived brightness is 50%, so white text on it reaches 4.84:1.
Should I use black or white text on #d6128e?
White. It scores 4.84:1 against #d6128e, versus 4.34:1 for black — AA at any size.
What is the complementary color of #d6128e?
#12D65A sits directly opposite on the wheel. Softer options are the split-complements #2CD612 and #12D6BC, which give the same contrast with far less vibration.
What colors go well with #d6128e?
For interface work: #FAF4F8 as the surface, #EDC0DC for borders, #9B4B7D for secondary text, #0BC121 as an accent and #760A4E for hover and pressed states. For a palette, the analogous pair #BC12D6 and #D6122C stays calm, while #12D65A is the loudest partner.
What is #d6128e in CMYK for printing?
cmyk(0%, 92%, 34%, 16%). 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 #d6128e 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 #D61246; nudged cooler, #D810D8.