Skip to content

#df045b

a dark, electric magenta / pink · warm · closest name: Crimson

RGB
223, 4, 91
HSL
336°, 97%, 45%
CMYK
0, 98, 59, 13
Luminance
0.1653

At a glance

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

Hex
#df045b
Hue
336°
magenta / pink
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1653
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.88:1
Closest name
Crimson
ΔE2000 8.6
Where it sits
Hue336° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool30% 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#df045b
RGBrgb(223, 4, 91)
HSLhsl(336, 97%, 45%)
CMYKcmyk(0%, 98%, 59%, 13%)
LABlab(47.7 74.7 15.6)
LCHlch(47.7 76.3 11.8)
OKLCHoklch(0.579 0.230 9.7)
Decimal14615643
Display P3color(display-p3 0.875 0.016 0.357)

Copy-ready code

/* CSS */
color: #df045b;
background-color: #df045b;
/* Tailwind (arbitrary) */
class="text-[#df045b] bg-[#df045b]"
/* SCSS */
$brand: #df045b;
/* SwiftUI */
Color(red: 0.875, green: 0.016, blue: 0.357)
/* Android */
Color.parseColor("#df045b")
/* Flutter */
Color(0xFFDF045B)
/* Python / OpenCV (BGR) */
(91, 4, 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#ffffff on #df045b · 4.88:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.88:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.31:1
AA fail · AA large pass · AAA fail
Reading the other direction: #df045b as text scores 4.88:1 on white and 4.31:1 on black.

Accessibility — WCAG contrast

Aa
#df045b on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#df045b on black: 4.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #56575C
deuteranopia · #897F56
tritanopia · #F40035

Color scale — 50 to 950

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

#FDF1F6
#FCE4ED
#FBC1D8
#FD91BC
#FC5A9A
#FB2378
#df045b
#C80452
#A00341
#740732
#48041F
Base = 600Lightest = 50 · #FDF1F6Darkest = 950 · #48041F
:root {
  --brand-50: #FDF1F6;
  --brand-100: #FCE4ED;
  --brand-200: #FBC1D8;
  --brand-300: #FD91BC;
  --brand-400: #FC5A9A;
  --brand-500: #FB2378;
  --brand-600: #df045b;
  --brand-700: #C80452;
  --brand-800: #A00341;
  --brand-900: #740732;
  --brand-950: #48041F;
  --brand: #df045b;
  --brand-ink: #ffffff;
}

Colors that work with #df045b

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

Text on it#ffffff
White wins here
Surface#FAF4F7
Tinted page background
Border#EDC0D2
Hairlines and dividers
Muted text#9B4B6A
Captions on the surface
Accent#00CC48
Second voice, not a rival
Dark variant#7D0233
Hover, pressed, headers
Light variant#FFE6F0
Selected rows, tints
Dark surface#24141A
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 #df045b

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#04DF88
Analogous left#DF04C8
Analogous right#DF1B04
Split-complement 1#04DF1B
Split-complement 2#04C8DF
Triadic 1#5BDF04
Triadic 2#045BDF
Tetradic#C8DF04

RGB percentages

Red87.5%
Green1.6%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta98.2%
Yellow59.2%
Key (black)12.5%

Color previews

#df045b text on a black background

contrast 4.31:1

Card sample

#df045b text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df045b

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.

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

#df045b, answered

What color is #df045b?

#df045b is a dark electric magenta / pink, closest to Crimson (ΔE2000 8.6). It sits at 336° on the hue wheel with 97% saturation and 45% lightness, which reads as warm.

What is the RGB value of #df045b?

rgb(223, 4, 91) — 223 red, 4 green and 91 blue out of 255, or 87.5% / 1.6% / 35.7% by channel.

Is #df045b a light or a dark color?

It is a dark color. Relative luminance is 0.1653 and perceived brightness is 49%, so white text on it reaches 4.88:1.

Should I use black or white text on #df045b?

White. It scores 4.88:1 against #df045b, versus 4.31:1 for black — AA at any size.

What is the complementary color of #df045b?

#04DF88 sits directly opposite on the wheel. Softer options are the split-complements #04DF1B and #04C8DF, which give the same contrast with far less vibration.

What colors go well with #df045b?

For interface work: #FAF4F7 as the surface, #EDC0D2 for borders, #9B4B6A for secondary text, #00CC48 as an accent and #7D0233 for hover and pressed states. For a palette, the analogous pair #DF04C8 and #DF1B04 stays calm, while #04DF88 is the loudest partner.

What is #df045b in CMYK for printing?

cmyk(0%, 98%, 59%, 13%). 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 #df045b warm or cool?

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

Work with #df045b in the Color Lab