Skip to content

#d42bdf

a balanced, vivid magenta / pink · neutral · closest name: Medium Orchid

RGB
212, 43, 223
HSL
296°, 74%, 52%
CMYK
5, 81, 0, 13
Luminance
0.2105

At a glance

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

Hex
#d42bdf
Hue
296°
magenta / pink
Saturation
74%
vivid
Lightness
52%
balanced
Brightness
87%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2105
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.21:1
Closest name
Medium Orchid
ΔE2000 5.4
Where it sits
Hue296° of 360°
Saturation74%
Lightness52%
Temperature
Warm ← → Cool52% cool

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

Every format

HEX#d42bdf
RGBrgb(212, 43, 223)
HSLhsl(296, 74%, 52%)
CMYKcmyk(5%, 81%, 0%, 13%)
LABlab(53.0 81.4 -55.0)
LCHlch(53.0 98.2 325.9)
OKLCHoklch(0.631 0.270 325.3)
Decimal13904863
Display P3color(display-p3 0.831 0.169 0.875)

Copy-ready code

/* CSS */
color: #d42bdf;
background-color: #d42bdf;
/* Tailwind (arbitrary) */
class="text-[#d42bdf] bg-[#d42bdf]"
/* SCSS */
$brand: #d42bdf;
/* SwiftUI */
Color(red: 0.831, green: 0.169, blue: 0.875)
/* Android */
Color.parseColor("#d42bdf")
/* Flutter */
Color(0xFFD42BDF)
/* Python / OpenCV (BGR) */
(223, 43, 212)

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

Accessibility — WCAG contrast

Aa
#d42bdf on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#d42bdf on black: 5.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0072E4
deuteranopia · #5785DB
tritanopia · #D95087

Color scale — 50 to 950

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

#FBF3FC
#F7E7F9
#F1C8F3
#EB9DF0
#E16DE9
#d42bdf
#CA20D5
#A81BB1
#86158E
#621467
#3D0C40
Base = 500Lightest = 50 · #FBF3FCDarkest = 950 · #3D0C40
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E7F9;
  --brand-200: #F1C8F3;
  --brand-300: #EB9DF0;
  --brand-400: #E16DE9;
  --brand-500: #d42bdf;
  --brand-600: #CA20D5;
  --brand-700: #A81BB1;
  --brand-800: #86158E;
  --brand-900: #621467;
  --brand-950: #3D0C40;
  --brand: #d42bdf;
  --brand-ink: #000000;
}

Colors that work with #d42bdf

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#FAF4FA
Tinted page background
Border#EAC0ED
Hairlines and dividers
Muted text#964B9B
Captions on the surface
Accent#48B517
Second voice, not a rival
Dark variant#69116F
Hover, pressed, headers
Light variant#FAE9FC
Selected rows, tints
Dark surface#231424
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 #d42bdf

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#36DF2B
Analogous left#7A2BDF
Analogous right#DF2B90
Split-complement 1#90DF2B
Split-complement 2#2BDF7A
Triadic 1#DFD42B
Triadic 2#2BDFD4
Tetradic#DF7A2B

RGB percentages

Red83.1%
Green16.9%
Blue87.5%

CMYK percentages

Cyan4.9%
Magenta80.7%
Yellow0.0%
Key (black)12.5%

Color previews

#d42bdf text on a black background

contrast 5.21:1

Card sample

#d42bdf text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d42bdf

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.

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

#d42bdf, answered

What color is #d42bdf?

#d42bdf is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 5.4). It sits at 296° on the hue wheel with 74% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #d42bdf?

rgb(212, 43, 223) — 212 red, 43 green and 223 blue out of 255, or 83.1% / 16.9% / 87.5% by channel.

Is #d42bdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2105 and perceived brightness is 56%, so black text on it reaches 5.21:1.

Should I use black or white text on #d42bdf?

Black. It scores 5.21:1 against #d42bdf, versus 4.03:1 for white — AA at any size.

What is the complementary color of #d42bdf?

#36DF2B sits directly opposite on the wheel. Softer options are the split-complements #90DF2B and #2BDF7A, which give the same contrast with far less vibration.

What colors go well with #d42bdf?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #48B517 as an accent and #69116F for hover and pressed states. For a palette, the analogous pair #7A2BDF and #DF2B90 stays calm, while #36DF2B is the loudest partner.

What is #d42bdf in CMYK for printing?

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

Is #d42bdf warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF2BA8; nudged cooler, #9229E2.

Work with #d42bdf in the Color Lab