Skip to content

#df24af

a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
223, 36, 175
HSL
315°, 75%, 51%
CMYK
0, 84, 22, 13
Luminance
0.2004

At a glance

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

Hex
#df24af
Hue
315°
magenta / pink
Saturation
75%
vivid
Lightness
51%
balanced
Brightness
87%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2004
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.01:1
Closest name
Medium Violet Red
ΔE2000 8.5
Where it sits
Hue315° of 360°
Saturation75%
Lightness51%
Temperature
Warm ← → Cool41% 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#df24af
RGBrgb(223, 36, 175)
HSLhsl(315, 75%, 51%)
CMYKcmyk(0%, 84%, 22%, 13%)
LABlab(51.9 78.3 -29.0)
LCHlch(51.9 83.5 339.7)
OKLCHoklch(0.618 0.248 341.7)
Decimal14623919
Display P3color(display-p3 0.875 0.141 0.686)

Copy-ready code

/* CSS */
color: #df24af;
background-color: #df24af;
/* Tailwind (arbitrary) */
class="text-[#df24af] bg-[#df24af]"
/* SCSS */
$brand: #df24af;
/* SwiftUI */
Color(red: 0.875, green: 0.141, blue: 0.686)
/* Android */
Color.parseColor("#df24af")
/* Flutter */
Color(0xFFDF24AF)
/* Python / OpenCV (BGR) */
(175, 36, 223)

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

Accessibility — WCAG contrast

Aa
#df24af on white: 4.19:1
AA ✗ fail · AA-large · AAA
Aa
#df24af on black: 5.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3B69B2
deuteranopia · #7886AB
tritanopia · #ED296B

Color scale — 50 to 950

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

#FCF3FA
#F9E7F4
#F4C8E8
#F19DDB
#EA6CC9
#E23BB7
#df24af
#B21A8B
#8E156F
#671352
#400C33
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #400C33
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F9E7F4;
  --brand-200: #F4C8E8;
  --brand-300: #F19DDB;
  --brand-400: #EA6CC9;
  --brand-500: #E23BB7;
  --brand-600: #df24af;
  --brand-700: #B21A8B;
  --brand-800: #8E156F;
  --brand-900: #671352;
  --brand-950: #400C33;
  --brand: #df24af;
  --brand-ink: #000000;
}

Colors that work with #df24af

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#FAF4F9
Tinted page background
Border#EDC0E1
Hairlines and dividers
Muted text#9B4B86
Captions on the surface
Accent#16B617
Second voice, not a rival
Dark variant#6F1057
Hover, pressed, headers
Light variant#FCE9F7
Selected rows, tints
Dark surface#241420
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 #df24af

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#24DF54
Analogous left#B224DF
Analogous right#DF2452
Split-complement 1#52DF24
Split-complement 2#24DFB2
Triadic 1#AFDF24
Triadic 2#24AFDF
Tetradic#DFB224

RGB percentages

Red87.5%
Green14.1%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta83.9%
Yellow21.5%
Key (black)12.5%

Color previews

#df24af text on a black background

contrast 5.01:1

Card sample

#df24af text on a white background

contrast 4.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df24af

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.

#df24af 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

Converts to four-color process without much drama. Proof it anyway.

#df24af, answered

What color is #df24af?

#df24af is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.5). It sits at 315° on the hue wheel with 75% saturation and 51% lightness, which reads as warm.

What is the RGB value of #df24af?

rgb(223, 36, 175) — 223 red, 36 green and 175 blue out of 255, or 87.5% / 14.1% / 68.6% by channel.

Is #df24af a light or a dark color?

It is a mid-tone. Relative luminance is 0.2004 and perceived brightness is 54%, so black text on it reaches 5.01:1.

Should I use black or white text on #df24af?

Black. It scores 5.01:1 against #df24af, versus 4.19:1 for white — AA at any size.

What is the complementary color of #df24af?

#24DF54 sits directly opposite on the wheel. Softer options are the split-complements #52DF24 and #24DFB2, which give the same contrast with far less vibration.

What colors go well with #df24af?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B86 for secondary text, #16B617 as an accent and #6F1057 for hover and pressed states. For a palette, the analogous pair #B224DF and #DF2452 stays calm, while #24DF54 is the loudest partner.

What is #df24af in CMYK for printing?

cmyk(0%, 84%, 22%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #df24af warm or cool?

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

Work with #df24af in the Color Lab