#f58cf7
a light, electric magenta / pink · neutral · closest name: Violet
At a glance
Every number on this page in one read: what #f58cf7 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 | #f58cf7 |
| RGB | rgb(245, 140, 247) |
| HSL | hsl(299, 87%, 76%) |
| CMYK | cmyk(1%, 43%, 0%, 3%) |
| LAB | lab(72.8 55.0 -36.8) |
| LCH | lch(72.8 66.2 326.2) |
| OKLCH | oklch(0.788 0.182 326.5) |
| Decimal | 16092407 |
| Display P3 | color(display-p3 0.961 0.549 0.969) |
Copy-ready code
/* CSS */
color: #f58cf7;
background-color: #f58cf7;
/* Tailwind (arbitrary) */
class="text-[#f58cf7] bg-[#f58cf7]"
/* SCSS */
$brand: #f58cf7;
/* SwiftUI */
Color(red: 0.961, green: 0.549, blue: 0.969)
/* Android */
Color.parseColor("#f58cf7")
/* Flutter */
Color(0xFFF58CF7)
/* Python / OpenCV (BGR) */
(247, 140, 245)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. #f58cf7 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: #FAE5FA;
--brand-200: #F6C4F7;
--brand-300: #f58cf7;
--brand-400: #F162F4;
--brand-500: #ED2DF0;
--brand-600: #E110E5;
--brand-700: #BB0DBF;
--brand-800: #960B99;
--brand-900: #6C0C6E;
--brand-950: #440845;
--brand: #f58cf7;
--brand-ink: #000000;
}Colors that work with #f58cf7
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 #f58cf7
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 | #8EF78C | Directly opposite — maximum tension | |
| Analogous left | #C08CF7 | Neighbour, quieter | |
| Analogous right | #F78CC4 | Neighbour, quieter | |
| Split-complement 1 | #C4F78C | Contrast without the clash | |
| Split-complement 2 | #8CF7C0 | Contrast without the clash | |
| Triadic 1 | #F7F58C | Even thirds — balanced and loud | |
| Triadic 2 | #8CF7F5 | Even thirds — balanced and loud | |
| Tetradic | #F7C08C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#f58cf7 text on a black background
contrast 9.98:1
#f58cf7 text on a white background
contrast 2.10:1
CSS3 live lab
The quick brown fox
color: #f58cf7;
background-color: #f58cf7;
Glowing headline
text-shadow: 2px 2px 8px #f58cf7;
Soft neon halo
text-shadow: 0 0 14px rgba(245, 140, 247, 0.45);
box-shadow: 0 12px 32px -8px rgba(245, 140, 247, 0.45);
border: 3px solid #f58cf7; background: linear-gradient(135deg, #f58cf7, #F78CB2);
Monochromatic scale
Palettes built from #f58cf7
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.4 away, with its history, psychology and brand usage.
#f58cf7 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.
#f58cf7, answered
What color is #f58cf7?
#f58cf7 is a light electric magenta / pink, closest to Violet (ΔE2000 2.4). It sits at 299° on the hue wheel with 87% saturation and 76% lightness, which reads as neutral.
What is the RGB value of #f58cf7?
rgb(245, 140, 247) — 245 red, 140 green and 247 blue out of 255, or 96.1% / 54.9% / 96.9% by channel.
Is #f58cf7 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4488 and perceived brightness is 75%, so black text on it reaches 9.98:1.
Should I use black or white text on #f58cf7?
Black. It scores 9.98:1 against #f58cf7, versus 2.10:1 for white — AAA at any size.
What is the complementary color of #f58cf7?
#8EF78C sits directly opposite on the wheel. Softer options are the split-complements #C4F78C and #8CF7C0, which give the same contrast with far less vibration.
What colors go well with #f58cf7?
For interface work: #FAF4FA as the surface, #ECC0ED for borders, #994B9B for secondary text, #3CC20A as an accent and #750877 for hover and pressed states. For a palette, the analogous pair #C08CF7 and #F78CC4 stays calm, while #8EF78C is the loudest partner.
What is #f58cf7 in CMYK for printing?
cmyk(1%, 43%, 0%, 3%). 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 #f58cf7 warm or cool?
Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F78CD2; nudged cooler, #CE8BF8.