Skip to content

#f5398e

a balanced, electric magenta / pink · warm · closest name: Deep Pink

RGB
245, 57, 142
HSL
333°, 90%, 59%
CMYK
0, 77, 42, 4
Luminance
0.2429

At a glance

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

Hex
#f5398e
Hue
333°
magenta / pink
Saturation
90%
electric
Lightness
59%
balanced
Brightness
96%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2429
WCAG relative
Temperature
Warm
32/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.86:1
Closest name
Deep Pink
ΔE2000 2.5
Where it sits
Hue333° of 360°
Saturation90%
Lightness59%
Temperature
Warm ← → Cool32% cool

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

Every format

HEX#f5398e
RGBrgb(245, 57, 142)
HSLhsl(333, 90%, 59%)
CMYKcmyk(0%, 77%, 42%, 4%)
LABlab(56.4 74.8 -2.3)
LCHlch(56.4 74.8 358.2)
OKLCHoklch(0.654 0.230 358.7)
Decimal16071054
Display P3color(display-p3 0.961 0.224 0.557)

Copy-ready code

/* CSS */
color: #f5398e;
background-color: #f5398e;
/* Tailwind (arbitrary) */
class="text-[#f5398e] bg-[#f5398e]"
/* SCSS */
$brand: #f5398e;
/* SwiftUI */
Color(red: 0.961, green: 0.224, blue: 0.557)
/* Android */
Color.parseColor("#f5398e")
/* Flutter */
Color(0xFFF5398E)
/* Python / OpenCV (BGR) */
(142, 57, 245)

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

Accessibility — WCAG contrast

Aa
#f5398e on white: 3.58:1
AA ✗ fail · AA-large · AAA
Aa
#f5398e on black: 5.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #647090
deuteranopia · #97948A
tritanopia · #FF135F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f5398e 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.

#FDF2F7
#FBE5EF
#F9C3DB
#FA94C2
#F75FA3
#f5398e
#E90C70
#C20A5D
#9B084A
#700A38
#460623
Base = 500Lightest = 50 · #FDF2F7Darkest = 950 · #460623
:root {
  --brand-50: #FDF2F7;
  --brand-100: #FBE5EF;
  --brand-200: #F9C3DB;
  --brand-300: #FA94C2;
  --brand-400: #F75FA3;
  --brand-500: #f5398e;
  --brand-600: #E90C70;
  --brand-700: #C20A5D;
  --brand-800: #9B084A;
  --brand-900: #700A38;
  --brand-950: #460623;
  --brand: #f5398e;
  --brand-ink: #000000;
}

Colors that work with #f5398e

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#FAF4F7
Tinted page background
Border#EDC0D4
Hairlines and dividers
Muted text#9B4B6F
Captions on the surface
Accent#06C63F
Second voice, not a rival
Dark variant#79063A
Hover, pressed, headers
Light variant#FEE7F1
Selected rows, tints
Dark surface#24141B
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 #f5398e

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#39F5A0
Analogous left#F539EC
Analogous right#F54239
Split-complement 1#39F542
Split-complement 2#39ECF5
Triadic 1#8EF539
Triadic 2#398EF5
Tetradic#ECF539

RGB percentages

Red96.1%
Green22.4%
Blue55.7%

CMYK percentages

Cyan0.0%
Magenta76.7%
Yellow42.0%
Key (black)3.9%

Color previews

#f5398e text on a black background

contrast 5.86:1

Card sample

#f5398e text on a white background

contrast 3.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(245, 57, 142, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(245, 57, 142, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f5398e;
background: linear-gradient(135deg, #f5398e, #F56139);

Monochromatic scale

Palettes built from #f5398e

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.

#f5398e 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.

#f5398e, answered

What color is #f5398e?

#f5398e is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 2.5). It sits at 333° on the hue wheel with 90% saturation and 59% lightness, which reads as warm.

What is the RGB value of #f5398e?

rgb(245, 57, 142) — 245 red, 57 green and 142 blue out of 255, or 96.1% / 22.4% / 55.7% by channel.

Is #f5398e a light or a dark color?

It is a mid-tone. Relative luminance is 0.2429 and perceived brightness is 58%, so black text on it reaches 5.86:1.

Should I use black or white text on #f5398e?

Black. It scores 5.86:1 against #f5398e, versus 3.58:1 for white — AA at any size.

What is the complementary color of #f5398e?

#39F5A0 sits directly opposite on the wheel. Softer options are the split-complements #39F542 and #39ECF5, which give the same contrast with far less vibration.

What colors go well with #f5398e?

For interface work: #FAF4F7 as the surface, #EDC0D4 for borders, #9B4B6F for secondary text, #06C63F as an accent and #79063A for hover and pressed states. For a palette, the analogous pair #F539EC and #F54239 stays calm, while #39F5A0 is the loudest partner.

What is #f5398e in CMYK for printing?

cmyk(0%, 77%, 42%, 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 #f5398e warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F53949; nudged cooler, #F737D4.

Work with #f5398e in the Color Lab