#f17df9
a light, electric magenta / pink · neutral · closest name: Violet
At a glance
Every number on this page in one read: what #f17df9 is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #f17df9 |
| RGB | rgb(241, 125, 249) |
| HSL | hsl(296, 91%, 73%) |
| CMYK | cmyk(3%, 50%, 0%, 2%) |
| LAB | lab(69.6 61.5 -42.9) |
| LCH | lch(69.6 75.0 325.1) |
| OKLCH | oklch(0.764 0.206 324.9) |
| Decimal | 15826425 |
| Display P3 | color(display-p3 0.945 0.490 0.976) |
Copy-ready code
/* CSS */
color: #f17df9;
background-color: #f17df9;
/* Tailwind (arbitrary) */
class="text-[#f17df9] bg-[#f17df9]"
/* SCSS */
$brand: #f17df9;
/* SwiftUI */
Color(red: 0.945, green: 0.490, blue: 0.976)
/* Android */
Color.parseColor("#f17df9")
/* Flutter */
Color(0xFFF17DF9)
/* Python / OpenCV (BGR) */
(249, 125, 241)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. #f17df9 is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FCF2FD;
--brand-100: #F9E5FB;
--brand-200: #F5C3F9;
--brand-300: #f17df9;
--brand-400: #EE5EF8;
--brand-500: #E828F5;
--brand-600: #DC0BEA;
--brand-700: #B709C3;
--brand-800: #92079C;
--brand-900: #6A0A71;
--brand-950: #420646;
--brand: #f17df9;
--brand-ink: #000000;
}Colors that work with #f17df9
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 #f17df9
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠White 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 | #85F97D | Directly opposite — maximum tension | |
| Analogous left | #B37DF9 | Neighbour, quieter | |
| Analogous right | #F97DC3 | Neighbour, quieter | |
| Split-complement 1 | #C3F97D | Contrast without the clash | |
| Split-complement 2 | #7DF9B3 | Contrast without the clash | |
| Triadic 1 | #F9F17D | Even thirds — balanced and loud | |
| Triadic 2 | #7DF9F1 | Even thirds — balanced and loud | |
| Tetradic | #F9B37D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#f17df9 text on a black background
contrast 9.04:1
#f17df9 text on a white background
contrast 2.32:1
CSS3 live lab
The quick brown fox
color: #f17df9;
background-color: #f17df9;
Glowing headline
text-shadow: 2px 2px 8px #f17df9;
Soft neon halo
text-shadow: 0 0 14px rgba(241, 125, 249, 0.45);
box-shadow: 0 12px 32px -8px rgba(241, 125, 249, 0.45);
border: 3px solid #f17df9; background: linear-gradient(135deg, #f17df9, #F97DAE);
Monochromatic scale
Palettes built from #f17df9
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: Violet (#ee82ee) — ΔE2000 2.1 away, with its history, psychology and brand usage.
#f17df9 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.
#f17df9, answered
What color is #f17df9?
#f17df9 is a light electric magenta / pink, closest to Violet (ΔE2000 2.1). It sits at 296° on the hue wheel with 91% saturation and 73% lightness, which reads as neutral.
What is the RGB value of #f17df9?
rgb(241, 125, 249) — 241 red, 125 green and 249 blue out of 255, or 94.5% / 49% / 97.6% by channel.
Is #f17df9 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4021 and perceived brightness is 72%, so black text on it reaches 9.04:1.
Should I use black or white text on #f17df9?
Black. It scores 9.04:1 against #f17df9, versus 2.32:1 for white — AAA at any size.
What is the complementary color of #f17df9?
#85F97D sits directly opposite on the wheel. Softer options are the split-complements #C3F97D and #7DF9B3, which give the same contrast with far less vibration.
What colors go well with #f17df9?
For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #42C804 as an accent and #72067A for hover and pressed states. For a palette, the analogous pair #B37DF9 and #F97DC3 stays calm, while #85F97D is the loudest partner.
What is #f17df9 in CMYK for printing?
cmyk(3%, 50%, 0%, 2%). 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 #f17df9 warm or cool?
Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F97DD4; nudged cooler, #C47BFA.