Skip to content

#df237f

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

RGB
223, 35, 127
HSL
331°, 75%, 51%
CMYK
0, 84, 43, 13
Luminance
0.1842

At a glance

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

Hex
#df237f
Hue
331°
magenta / pink
Saturation
75%
vivid
Lightness
51%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1842
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.68:1
Closest name
Deep Pink
ΔE2000 6.4
Where it sits
Hue331° of 360°
Saturation75%
Lightness51%
Temperature
Warm ← → Cool33% 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#df237f
RGBrgb(223, 35, 127)
HSLhsl(331, 75%, 51%)
CMYKcmyk(0%, 84%, 43%, 13%)
LABlab(50.0 73.4 -3.2)
LCHlch(50.0 73.5 357.5)
OKLCHoklch(0.599 0.226 358.1)
Decimal14623615
Display P3color(display-p3 0.875 0.137 0.498)

Copy-ready code

/* CSS */
color: #df237f;
background-color: #df237f;
/* Tailwind (arbitrary) */
class="text-[#df237f] bg-[#df237f]"
/* SCSS */
$brand: #df237f;
/* SwiftUI */
Color(red: 0.875, green: 0.137, blue: 0.498)
/* Android */
Color.parseColor("#df237f")
/* Flutter */
Color(0xFFDF237F)
/* Python / OpenCV (BGR) */
(127, 35, 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 #df237f · 4.68:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.48:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.68:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #df237f as text scores 4.48:1 on white and 4.68:1 on black.

Accessibility — WCAG contrast

Aa
#df237f on white: 4.48:1
AA ✗ fail · AA-large · AAA
Aa
#df237f on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #536181
deuteranopia · #86837B
tritanopia · #F20050

Color scale — 50 to 950

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

#FCF3F7
#F9E7F0
#F4C8DD
#F19DC6
#EA6CAA
#E33B8D
#df237f
#B21A64
#8E1550
#67133C
#410C26
Base = 600Lightest = 50 · #FCF3F7Darkest = 950 · #410C26
:root {
  --brand-50: #FCF3F7;
  --brand-100: #F9E7F0;
  --brand-200: #F4C8DD;
  --brand-300: #F19DC6;
  --brand-400: #EA6CAA;
  --brand-500: #E33B8D;
  --brand-600: #df237f;
  --brand-700: #B21A64;
  --brand-800: #8E1550;
  --brand-900: #67133C;
  --brand-950: #410C26;
  --brand: #df237f;
  --brand-ink: #000000;
}

Colors that work with #df237f

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#EDC0D6
Hairlines and dividers
Muted text#9B4B72
Captions on the surface
Accent#16B640
Second voice, not a rival
Dark variant#6F103F
Hover, pressed, headers
Light variant#FCE9F2
Selected rows, tints
Dark surface#24141C
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 #df237f

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#23DF83
Analogous left#DF23DD
Analogous right#DF2523
Split-complement 1#23DF25
Split-complement 2#23DDDF
Triadic 1#7FDF23
Triadic 2#237FDF
Tetradic#DDDF23

RGB percentages

Red87.5%
Green13.7%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta84.3%
Yellow43.0%
Key (black)12.5%

Color previews

#df237f text on a black background

contrast 4.68:1

Card sample

#df237f text on a white background

contrast 4.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df237f

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.

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

#df237f, answered

What color is #df237f?

#df237f is a balanced vivid magenta / pink, closest to Deep Pink (ΔE2000 6.4). It sits at 331° on the hue wheel with 75% saturation and 51% lightness, which reads as warm.

What is the RGB value of #df237f?

rgb(223, 35, 127) — 223 red, 35 green and 127 blue out of 255, or 87.5% / 13.7% / 49.8% by channel.

Is #df237f a light or a dark color?

It is a mid-tone. Relative luminance is 0.1842 and perceived brightness is 52%, so black text on it reaches 4.68:1.

Should I use black or white text on #df237f?

Black. It scores 4.68:1 against #df237f, versus 4.48:1 for white — AA at any size.

What is the complementary color of #df237f?

#23DF83 sits directly opposite on the wheel. Softer options are the split-complements #23DF25 and #23DDDF, which give the same contrast with far less vibration.

What colors go well with #df237f?

For interface work: #FAF4F7 as the surface, #EDC0D6 for borders, #9B4B72 for secondary text, #16B640 as an accent and #6F103F for hover and pressed states. For a palette, the analogous pair #DF23DD and #DF2523 stays calm, while #23DF83 is the loudest partner.

What is #df237f in CMYK for printing?

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

Is #df237f warm or cool?

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

Work with #df237f in the Color Lab