Skip to content

#c40c97

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
196, 12, 151
HSL
315°, 89%, 41%
CMYK
0, 94, 23, 23
Luminance
0.1423

At a glance

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

Hex
#c40c97
Hue
315°
magenta / pink
Saturation
89%
electric
Lightness
41%
dark
Brightness
77%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1423
WCAG relative
Temperature
Warm
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.46:1
Closest name
Medium Violet Red
ΔE2000 4.1
Where it sits
Hue315° of 360°
Saturation89%
Lightness41%
Temperature
Warm ← → Cool42% 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#c40c97
RGBrgb(196, 12, 151)
HSLhsl(315, 89%, 41%)
CMYKcmyk(0%, 94%, 23%, 23%)
LABlab(44.6 73.5 -26.5)
LCHlch(44.6 78.1 340.2)
OKLCHoklch(0.553 0.233 342.2)
Decimal12848279
Display P3color(display-p3 0.769 0.047 0.592)

Copy-ready code

/* CSS */
color: #c40c97;
background-color: #c40c97;
/* Tailwind (arbitrary) */
class="text-[#c40c97] bg-[#c40c97]"
/* SCSS */
$brand: #c40c97;
/* SwiftUI */
Color(red: 0.769, green: 0.047, blue: 0.592)
/* Android */
Color.parseColor("#c40c97")
/* Flutter */
Color(0xFFC40C97)
/* Python / OpenCV (BGR) */
(151, 12, 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 #c40c97 · 5.46:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.46:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.85:1
AA fail · AA large pass · AAA fail
Reading the other direction: #c40c97 as text scores 5.46:1 on white and 3.85:1 on black.

Accessibility — WCAG contrast

Aa
#c40c97 on white: 5.46:1
AA ✓ pass · AA-large · AAA
Aa
#c40c97 on black: 3.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B589A
deuteranopia · #677393
tritanopia · #D11159

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c40c97 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDF2FA
#FAE5F5
#F8C4EB
#F995E0
#F560D1
#F22CC1
#E70EB2
#c40c97
#9A0976
#6F0B57
#450736
Base = 700Lightest = 50 · #FDF2FADarkest = 950 · #450736
:root {
  --brand-50: #FDF2FA;
  --brand-100: #FAE5F5;
  --brand-200: #F8C4EB;
  --brand-300: #F995E0;
  --brand-400: #F560D1;
  --brand-500: #F22CC1;
  --brand-600: #E70EB2;
  --brand-700: #c40c97;
  --brand-800: #9A0976;
  --brand-900: #6F0B57;
  --brand-950: #450736;
  --brand: #c40c97;
  --brand-ink: #ffffff;
}

Colors that work with #c40c97

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#FAF4F9
Tinted page background
Border#EDC0E2
Hairlines and dividers
Muted text#9B4B87
Captions on the surface
Accent#09C408
Second voice, not a rival
Dark variant#78075D
Hover, pressed, headers
Light variant#FEE7F8
Selected rows, tints
Dark surface#241420
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 #c40c97

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#0CC439
Analogous left#950CC4
Analogous right#C40C3B
Split-complement 1#3BC40C
Split-complement 2#0CC495
Triadic 1#97C40C
Triadic 2#0C97C4
Tetradic#C4950C

RGB percentages

Red76.9%
Green4.7%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta93.9%
Yellow23.0%
Key (black)23.1%

Color previews

#c40c97 text on a black background

contrast 3.85:1

Card sample

#c40c97 text on a white background

contrast 5.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c40c97

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.

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

#c40c97, answered

What color is #c40c97?

#c40c97 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.1). It sits at 315° on the hue wheel with 89% saturation and 41% lightness, which reads as warm.

What is the RGB value of #c40c97?

rgb(196, 12, 151) — 196 red, 12 green and 151 blue out of 255, or 76.9% / 4.7% / 59.2% by channel.

Is #c40c97 a light or a dark color?

It is a dark color. Relative luminance is 0.1423 and perceived brightness is 47%, so white text on it reaches 5.46:1.

Should I use black or white text on #c40c97?

White. It scores 5.46:1 against #c40c97, versus 3.85:1 for black — AA at any size.

What is the complementary color of #c40c97?

#0CC439 sits directly opposite on the wheel. Softer options are the split-complements #3BC40C and #0CC495, which give the same contrast with far less vibration.

What colors go well with #c40c97?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B87 for secondary text, #09C408 as an accent and #78075D for hover and pressed states. For a palette, the analogous pair #950CC4 and #C40C3B stays calm, while #0CC439 is the loudest partner.

What is #c40c97 in CMYK for printing?

cmyk(0%, 94%, 23%, 23%). 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 #c40c97 warm or cool?

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

Work with #c40c97 in the Color Lab