Skip to content

#f22df6

a balanced, electric magenta / pink · neutral · closest name: Magenta

RGB
242, 45, 246
HSL
299°, 92%, 57%
CMYK
2, 82, 0, 4
Luminance
0.2741

At a glance

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

Hex
#f22df6
Hue
299°
magenta / pink
Saturation
92%
electric
Lightness
57%
balanced
Brightness
96%
HSV value
Perceived
63%
weighted brightness
Luminance
0.2741
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.48:1
Closest name
Magenta
ΔE2000 1.8
Where it sits
Hue299° of 360°
Saturation92%
Lightness57%
Temperature
Warm ← → Cool51% 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#f22df6
RGBrgb(242, 45, 246)
HSLhsl(299, 92%, 57%)
CMYKcmyk(2%, 82%, 0%, 4%)
LABlab(59.4 89.8 -57.5)
LCHlch(59.4 106.6 327.4)
OKLCHoklch(0.689 0.296 327.3)
Decimal15871478
Display P3color(display-p3 0.949 0.176 0.965)

Copy-ready code

/* CSS */
color: #f22df6;
background-color: #f22df6;
/* Tailwind (arbitrary) */
class="text-[#f22df6] bg-[#f22df6]"
/* SCSS */
$brand: #f22df6;
/* SwiftUI */
Color(red: 0.949, green: 0.176, blue: 0.965)
/* Android */
Color.parseColor("#f22df6")
/* Flutter */
Color(0xFFF22DF6)
/* Python / OpenCV (BGR) */
(246, 45, 242)

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 #f22df6 · 6.48:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.24:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.48:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #f22df6 as text scores 3.24:1 on white and 6.48:1 on black.

Accessibility — WCAG contrast

Aa
#f22df6 on white: 3.24:1
AA ✗ fail · AA-large · AAA
Aa
#f22df6 on black: 6.48:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FFB
deuteranopia · #6897F1
tritanopia · #F95595

Color scale — 50 to 950

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

#FDF2FD
#FBE4FB
#F8C3F9
#F893FA
#F55EF8
#f22df6
#E60AEB
#C008C4
#9A079D
#6F0A71
#450647
Base = 500Lightest = 50 · #FDF2FDDarkest = 950 · #450647
:root {
  --brand-50: #FDF2FD;
  --brand-100: #FBE4FB;
  --brand-200: #F8C3F9;
  --brand-300: #F893FA;
  --brand-400: #F55EF8;
  --brand-500: #f22df6;
  --brand-600: #E60AEB;
  --brand-700: #C008C4;
  --brand-800: #9A079D;
  --brand-900: #6F0A71;
  --brand-950: #450647;
  --brand: #f22df6;
  --brand-ink: #000000;
}

Colors that work with #f22df6

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#ECC0ED
Hairlines and dividers
Muted text#994B9B
Captions on the surface
Accent#39C705
Second voice, not a rival
Dark variant#78057A
Hover, pressed, headers
Light variant#FDE7FE
Selected rows, tints
Dark surface#241424
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 #f22df6

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#31F62D
Analogous left#8E2DF6
Analogous right#F62D96
Split-complement 1#96F62D
Split-complement 2#2DF68E
Triadic 1#F6F22D
Triadic 2#2DF6F2
Tetradic#F68E2D

RGB percentages

Red94.9%
Green17.6%
Blue96.5%

CMYK percentages

Cyan1.6%
Magenta81.7%
Yellow0.0%
Key (black)3.5%

Color previews

#f22df6 text on a black background

contrast 6.48:1

Card sample

#f22df6 text on a white background

contrast 3.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 45, 246, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 45, 246, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f22df6;
background: linear-gradient(135deg, #f22df6, #F62D74);

Monochromatic scale

Palettes built from #f22df6

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.

#f22df6 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
ButtonsLinksFocus statesCharts
Print note

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

#f22df6, answered

What color is #f22df6?

#f22df6 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 1.8). It sits at 299° on the hue wheel with 92% saturation and 57% lightness, which reads as neutral.

What is the RGB value of #f22df6?

rgb(242, 45, 246) — 242 red, 45 green and 246 blue out of 255, or 94.9% / 17.6% / 96.5% by channel.

Is #f22df6 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2741 and perceived brightness is 63%, so black text on it reaches 6.48:1.

Should I use black or white text on #f22df6?

Black. It scores 6.48:1 against #f22df6, versus 3.24:1 for white — AA at any size.

What is the complementary color of #f22df6?

#31F62D sits directly opposite on the wheel. Softer options are the split-complements #96F62D and #2DF68E, which give the same contrast with far less vibration.

What colors go well with #f22df6?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #994B9B for secondary text, #39C705 as an accent and #78057A for hover and pressed states. For a palette, the analogous pair #8E2DF6 and #F62D96 stays calm, while #31F62D is the loudest partner.

What is #f22df6 in CMYK for printing?

cmyk(2%, 82%, 0%, 4%). 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 #f22df6 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 #F62DB0; nudged cooler, #A92BF8.

Work with #f22df6 in the Color Lab