Skip to content

#d742df

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

RGB
215, 66, 223
HSL
297°, 71%, 57%
CMYK
4, 70, 0, 13
Luminance
0.2367

At a glance

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

Hex
#d742df
Hue
297°
magenta / pink
Saturation
71%
vivid
Lightness
57%
balanced
Brightness
87%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2367
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.73:1
Closest name
Medium Orchid
ΔE2000 4.7
Where it sits
Hue297° of 360°
Saturation71%
Lightness57%
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#d742df
RGBrgb(215, 66, 223)
HSLhsl(297, 71%, 57%)
CMYKcmyk(4%, 70%, 0%, 13%)
LABlab(55.8 75.4 -50.6)
LCHlch(55.8 90.8 326.1)
OKLCHoklch(0.651 0.250 325.8)
Decimal14107359
Display P3color(display-p3 0.843 0.259 0.875)

Copy-ready code

/* CSS */
color: #d742df;
background-color: #d742df;
/* Tailwind (arbitrary) */
class="text-[#d742df] bg-[#d742df]"
/* SCSS */
$brand: #d742df;
/* SwiftUI */
Color(red: 0.843, green: 0.259, blue: 0.875)
/* Android */
Color.parseColor("#d742df")
/* Flutter */
Color(0xFFD742DF)
/* Python / OpenCV (BGR) */
(223, 66, 215)

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

Accessibility — WCAG contrast

Aa
#d742df on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#d742df on black: 5.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #197AE3
deuteranopia · #648CDB
tritanopia · #DC5C8D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d742df 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
#F7E7F8
#F0C9F3
#EB9FEF
#E06FE7
#d742df
#C823D1
#A71EAE
#86188C
#611565
#3D0D3F
Base = 500Lightest = 50 · #FBF3FCDarkest = 950 · #3D0D3F
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E7F8;
  --brand-200: #F0C9F3;
  --brand-300: #EB9FEF;
  --brand-400: #E06FE7;
  --brand-500: #d742df;
  --brand-600: #C823D1;
  --brand-700: #A71EAE;
  --brand-800: #86188C;
  --brand-900: #611565;
  --brand-950: #3D0D3F;
  --brand: #d742df;
  --brand-ink: #000000;
}

Colors that work with #d742df

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#974B9B
Captions on the surface
Accent#48B21A
Second voice, not a rival
Dark variant#68126D
Hover, pressed, headers
Light variant#FAE9FB
Selected rows, tints
Dark surface#241424
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 #d742df

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#4ADF42
Analogous left#8842DF
Analogous right#DF4299
Split-complement 1#99DF42
Split-complement 2#42DF88
Triadic 1#DFD742
Triadic 2#42DFD7
Tetradic#DF8842

RGB percentages

Red84.3%
Green25.9%
Blue87.5%

CMYK percentages

Cyan3.6%
Magenta70.4%
Yellow0.0%
Key (black)12.5%

Color previews

#d742df text on a black background

contrast 5.73:1

Card sample

#d742df text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d742df

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.

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

#d742df, answered

What color is #d742df?

#d742df is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 4.7). It sits at 297° on the hue wheel with 71% saturation and 57% lightness, which reads as neutral.

What is the RGB value of #d742df?

rgb(215, 66, 223) — 215 red, 66 green and 223 blue out of 255, or 84.3% / 25.9% / 87.5% by channel.

Is #d742df a light or a dark color?

It is a mid-tone. Relative luminance is 0.2367 and perceived brightness is 58%, so black text on it reaches 5.73:1.

Should I use black or white text on #d742df?

Black. It scores 5.73:1 against #d742df, versus 3.66:1 for white — AA at any size.

What is the complementary color of #d742df?

#4ADF42 sits directly opposite on the wheel. Softer options are the split-complements #99DF42 and #42DF88, which give the same contrast with far less vibration.

What colors go well with #d742df?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #974B9B for secondary text, #48B21A as an accent and #68126D for hover and pressed states. For a palette, the analogous pair #8842DF and #DF4299 stays calm, while #4ADF42 is the loudest partner.

What is #d742df in CMYK for printing?

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

Is #d742df 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 #DF42AE; nudged cooler, #9E40E1.

Work with #d742df in the Color Lab