Skip to content

#c42dbb

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

RGB
196, 45, 187
HSL
304°, 63%, 47%
CMYK
0, 77, 5, 23
Luminance
0.1720

At a glance

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

Hex
#c42dbb
Hue
304°
magenta / pink
Saturation
63%
vivid
Lightness
47%
balanced
Brightness
77%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1720
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.73:1
Closest name
Medium Orchid
ΔE2000 7.4
Where it sits
Hue304° of 360°
Saturation63%
Lightness47%
Temperature
Warm ← → Cool48% 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#c42dbb
RGBrgb(196, 45, 187)
HSLhsl(304, 63%, 47%)
CMYKcmyk(0%, 77%, 5%, 23%)
LABlab(48.5 72.2 -41.6)
LCHlch(48.5 83.3 330.0)
OKLCHoklch(0.587 0.235 330.8)
Decimal12856763
Display P3color(display-p3 0.769 0.176 0.733)

Copy-ready code

/* CSS */
color: #c42dbb;
background-color: #c42dbb;
/* Tailwind (arbitrary) */
class="text-[#c42dbb] bg-[#c42dbb]"
/* SCSS */
$brand: #c42dbb;
/* SwiftUI */
Color(red: 0.769, green: 0.176, blue: 0.733)
/* Android */
Color.parseColor("#c42dbb")
/* Flutter */
Color(0xFFC42DBB)
/* Python / OpenCV (BGR) */
(187, 45, 196)

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

Accessibility — WCAG contrast

Aa
#c42dbb on white: 4.73:1
AA ✓ pass · AA-large · AAA
Aa
#c42dbb on black: 4.44:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1966BF
deuteranopia · #5E7AB7
tritanopia · #CC4273

Color scale — 50 to 950

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

#FBF4FB
#F7E8F6
#F0CCEE
#EAA4E6
#E076D9
#D548CD
#c42dbb
#A6269E
#851E7F
#611A5C
#3C103A
Base = 600Lightest = 50 · #FBF4FBDarkest = 950 · #3C103A
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E8F6;
  --brand-200: #F0CCEE;
  --brand-300: #EAA4E6;
  --brand-400: #E076D9;
  --brand-500: #D548CD;
  --brand-600: #c42dbb;
  --brand-700: #A6269E;
  --brand-800: #851E7F;
  --brand-900: #611A5C;
  --brand-950: #3C103A;
  --brand: #c42dbb;
  --brand-ink: #ffffff;
}

Colors that work with #c42dbb

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#FAF4FA
Tinted page background
Border#EDC0EA
Hairlines and dividers
Muted text#9B4B96
Captions on the surface
Accent#3CAA22
Second voice, not a rival
Dark variant#681863
Hover, pressed, headers
Light variant#FAEAF9
Selected rows, tints
Dark surface#241423
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 #c42dbb

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#2DC436
Analogous left#822DC4
Analogous right#C42D70
Split-complement 1#70C42D
Split-complement 2#2DC482
Triadic 1#BBC42D
Triadic 2#2DBBC4
Tetradic#C4822D

RGB percentages

Red76.9%
Green17.6%
Blue73.3%

CMYK percentages

Cyan0.0%
Magenta77.0%
Yellow4.6%
Key (black)23.1%

Color previews

#c42dbb text on a black background

contrast 4.44:1

Card sample

#c42dbb text on a white background

contrast 4.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 45, 187, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 45, 187, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c42dbb;
background: linear-gradient(135deg, #c42dbb, #C42D56);

Monochromatic scale

Palettes built from #c42dbb

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.

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

#c42dbb, answered

What color is #c42dbb?

#c42dbb is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 7.4). It sits at 304° on the hue wheel with 63% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #c42dbb?

rgb(196, 45, 187) — 196 red, 45 green and 187 blue out of 255, or 76.9% / 17.6% / 73.3% by channel.

Is #c42dbb a light or a dark color?

It is a dark color. Relative luminance is 0.1720 and perceived brightness is 51%, so white text on it reaches 4.73:1.

Should I use black or white text on #c42dbb?

White. It scores 4.73:1 against #c42dbb, versus 4.44:1 for black — AA at any size.

What is the complementary color of #c42dbb?

#2DC436 sits directly opposite on the wheel. Softer options are the split-complements #70C42D and #2DC482, which give the same contrast with far less vibration.

What colors go well with #c42dbb?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #3CAA22 as an accent and #681863 for hover and pressed states. For a palette, the analogous pair #822DC4 and #C42D70 stays calm, while #2DC436 is the loudest partner.

What is #c42dbb in CMYK for printing?

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

Is #c42dbb warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C42D84; nudged cooler, #972BC7.

Work with #c42dbb in the Color Lab