Skip to content

#f172df

a light, electric magenta / pink · neutral · closest name: Violet

RGB
241, 114, 223
HSL
309°, 82%, 70%
CMYK
0, 53, 8, 6
Luminance
0.3606

At a glance

Every number on this page in one read: what #f172df is made of, how bright it looks, and which way it leans.

Hex
#f172df
Hue
309°
magenta / pink
Saturation
82%
electric
Lightness
70%
light
Brightness
95%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3606
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.21:1
Closest name
Violet
ΔE2000 3.7
Where it sits
Hue309° of 360°
Saturation82%
Lightness70%
Temperature
Warm ← → Cool45% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f172df
RGBrgb(241, 114, 223)
HSLhsl(309, 82%, 70%)
CMYKcmyk(0%, 53%, 8%, 6%)
LABlab(66.6 62.3 -33.3)
LCHlch(66.6 70.7 331.8)
OKLCHoklch(0.738 0.201 333.1)
Decimal15823583
Display P3color(display-p3 0.945 0.447 0.875)

Copy-ready code

/* CSS */
color: #f172df;
background-color: #f172df;
/* Tailwind (arbitrary) */
class="text-[#f172df] bg-[#f172df]"
/* SCSS */
$brand: #f172df;
/* SwiftUI */
Color(red: 0.945, green: 0.447, blue: 0.875)
/* Android */
Color.parseColor("#f172df")
/* Flutter */
Color(0xFFF172DF)
/* Python / OpenCV (BGR) */
(223, 114, 241)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #f172df · 8.21:1
Use #000000AAA at every size.
Aa
White text · 2.56:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.21:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f172df as text scores 2.56:1 on white and 8.21:1 on black.

Accessibility — WCAG contrast

Aa
#f172df on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#f172df on black: 8.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6F96E3
deuteranopia · #95A9DB
tritanopia · #FA7B9F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f172df is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF2FB
#F9E6F7
#F6C6EF
#F599E8
#f172df
#EB33D1
#DF16C2
#BA12A2
#940F81
#6B0F5E
#43093B
Base = 400Lightest = 50 · #FCF2FBDarkest = 950 · #43093B
:root {
  --brand-50: #FCF2FB;
  --brand-100: #F9E6F7;
  --brand-200: #F6C6EF;
  --brand-300: #F599E8;
  --brand-400: #f172df;
  --brand-500: #EB33D1;
  --brand-600: #DF16C2;
  --brand-700: #BA12A2;
  --brand-800: #940F81;
  --brand-900: #6B0F5E;
  --brand-950: #43093B;
  --brand: #f172df;
  --brand-ink: #000000;
}

Colors that work with #f172df

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#EDC0E6
Hairlines and dividers
Muted text#9B4B90
Captions on the surface
Accent#21BE0E
Second voice, not a rival
Dark variant#740C65
Hover, pressed, headers
Light variant#FDE8FA
Selected rows, tints
Dark surface#241422
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #f172df

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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#72F184
Analogous left#C372F1
Analogous right#F1729F
Split-complement 1#9FF172
Split-complement 2#72F1C3
Triadic 1#DFF172
Triadic 2#72DFF1
Tetradic#F1C372

RGB percentages

Red94.5%
Green44.7%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta52.7%
Yellow7.5%
Key (black)5.5%

Color previews

#f172df text on a black background

contrast 8.21:1

Card sample

#f172df text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f172df;
Background color
Panel with #f172df background
background-color: #f172df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f172df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(241, 114, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(241, 114, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f172df;
background: linear-gradient(135deg, #f172df, #F1728A);

Monochromatic scale

Palettes built from #f172df

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.

#f172df in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#f172df, answered

What color is #f172df?

#f172df is a light electric magenta / pink, closest to Violet (ΔE2000 3.7). It sits at 309° on the hue wheel with 82% saturation and 70% lightness, which reads as neutral.

What is the RGB value of #f172df?

rgb(241, 114, 223) — 241 red, 114 green and 223 blue out of 255, or 94.5% / 44.7% / 87.5% by channel.

Is #f172df a light or a dark color?

It is a mid-tone. Relative luminance is 0.3606 and perceived brightness is 69%, so black text on it reaches 8.21:1.

Should I use black or white text on #f172df?

Black. It scores 8.21:1 against #f172df, versus 2.56:1 for white — AAA at any size.

What is the complementary color of #f172df?

#72F184 sits directly opposite on the wheel. Softer options are the split-complements #9FF172 and #72F1C3, which give the same contrast with far less vibration.

What colors go well with #f172df?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B90 for secondary text, #21BE0E as an accent and #740C65 for hover and pressed states. For a palette, the analogous pair #C372F1 and #F1729F stays calm, while #72F184 is the loudest partner.

What is #f172df in CMYK for printing?

cmyk(0%, 53%, 8%, 6%). 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 #f172df warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F172B0; nudged cooler, #D570F3.

Work with #f172df in the Color Lab