Skip to content

#d52f5b

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

RGB
213, 47, 91
HSL
344°, 66%, 51%
CMYK
0, 78, 57, 17
Luminance
0.1693

At a glance

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

Hex
#d52f5b
Hue
344°
magenta / pink
Saturation
66%
vivid
Lightness
51%
balanced
Brightness
84%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1693
WCAG relative
Temperature
Warm
25/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.79:1
Closest name
Crimson
ΔE2000 7.7
Where it sits
Hue344° of 360°
Saturation66%
Lightness51%
Temperature
Warm ← → Cool25% 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#d52f5b
RGBrgb(213, 47, 91)
HSLhsl(344, 66%, 51%)
CMYKcmyk(0%, 78%, 57%, 17%)
LABlab(48.2 65.1 15.9)
LCHlch(48.2 67.0 13.8)
OKLCHoklch(0.579 0.201 11.4)
Decimal13971291
Display P3color(display-p3 0.835 0.184 0.357)

Copy-ready code

/* CSS */
color: #d52f5b;
background-color: #d52f5b;
/* Tailwind (arbitrary) */
class="text-[#d52f5b] bg-[#d52f5b]"
/* SCSS */
$brand: #d52f5b;
/* SwiftUI */
Color(red: 0.835, green: 0.184, blue: 0.357)
/* Android */
Color.parseColor("#d52f5b")
/* Flutter */
Color(0xFFD52F5B)
/* Python / OpenCV (BGR) */
(91, 47, 213)

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

Accessibility — WCAG contrast

Aa
#d52f5b on white: 4.79:1
AA ✓ pass · AA-large · AAA
Aa
#d52f5b on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5D5D5C
deuteranopia · #887F57
tritanopia · #E90042

Color scale — 50 to 950

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

#FBF3F5
#F8E8EC
#F1CAD5
#ECA2B5
#E37391
#D9446C
#d52f5b
#AA2246
#881B38
#63182C
#3E0F1B
Base = 600Lightest = 50 · #FBF3F5Darkest = 950 · #3E0F1B
:root {
  --brand-50: #FBF3F5;
  --brand-100: #F8E8EC;
  --brand-200: #F1CAD5;
  --brand-300: #ECA2B5;
  --brand-400: #E37391;
  --brand-500: #D9446C;
  --brand-600: #d52f5b;
  --brand-700: #AA2246;
  --brand-800: #881B38;
  --brand-900: #63182C;
  --brand-950: #3E0F1B;
  --brand: #d52f5b;
  --brand-ink: #ffffff;
}

Colors that work with #d52f5b

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#FAF4F6
Tinted page background
Border#EDC0CC
Hairlines and dividers
Muted text#9B4B60
Captions on the surface
Accent#1EAE64
Second voice, not a rival
Dark variant#6A152C
Hover, pressed, headers
Light variant#FBEAEE
Selected rows, tints
Dark surface#241418
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 #d52f5b

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
  • Brand accents, badges and data highlights
Use with care
  • 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#2FD5A9
Analogous left#D52FAE
Analogous right#D5562F
Split-complement 1#2FD556
Split-complement 2#2FAED5
Triadic 1#5BD52F
Triadic 2#2F5BD5
Tetradic#AED52F

RGB percentages

Red83.5%
Green18.4%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta77.9%
Yellow57.3%
Key (black)16.5%

Color previews

#d52f5b text on a black background

contrast 4.39:1

Card sample

#d52f5b text on a white background

contrast 4.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d52f5b

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.

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

#d52f5b, answered

What color is #d52f5b?

#d52f5b is a balanced vivid magenta / pink, closest to Crimson (ΔE2000 7.7). It sits at 344° on the hue wheel with 66% saturation and 51% lightness, which reads as warm.

What is the RGB value of #d52f5b?

rgb(213, 47, 91) — 213 red, 47 green and 91 blue out of 255, or 83.5% / 18.4% / 35.7% by channel.

Is #d52f5b a light or a dark color?

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

Should I use black or white text on #d52f5b?

White. It scores 4.79:1 against #d52f5b, versus 4.39:1 for black — AA at any size.

What is the complementary color of #d52f5b?

#2FD5A9 sits directly opposite on the wheel. Softer options are the split-complements #2FD556 and #2FAED5, which give the same contrast with far less vibration.

What colors go well with #d52f5b?

For interface work: #FAF4F6 as the surface, #EDC0CC for borders, #9B4B60 for secondary text, #1EAE64 as an accent and #6A152C for hover and pressed states. For a palette, the analogous pair #D52FAE and #D5562F stays calm, while #2FD5A9 is the loudest partner.

What is #d52f5b in CMYK for printing?

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

Is #d52f5b warm or cool?

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

Work with #d52f5b in the Color Lab