Skip to content

#c40fd0

a dark, electric magenta / pink · neutral · closest name: Dark Orchid

RGB
196, 15, 208
HSL
296°, 87%, 44%
CMYK
6, 93, 0, 18
Luminance
0.1663

At a glance

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

Hex
#c40fd0
Hue
296°
magenta / pink
Saturation
87%
electric
Lightness
44%
dark
Brightness
82%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1663
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.85:1
Closest name
Dark Orchid
ΔE2000 7.2
Where it sits
Hue296° of 360°
Saturation87%
Lightness44%
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#c40fd0
RGBrgb(196, 15, 208)
HSLhsl(296, 87%, 44%)
CMYKcmyk(6%, 93%, 0%, 18%)
LABlab(47.8 81.1 -54.9)
LCHlch(47.8 97.9 325.9)
OKLCHoklch(0.586 0.268 325.1)
Decimal12849104
Display P3color(display-p3 0.769 0.059 0.816)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c40fd0 on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#c40fd0 on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065D4
deuteranopia · #4778CC
tritanopia · #C8427B

Color scale — 50 to 950

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

#FCF2FD
#F9E5FA
#F4C4F7
#F196F7
#EB62F4
#E42EF0
#D711E4
#c40fd0
#8F0B98
#680C6E
#410845
Base = 700Lightest = 50 · #FCF2FDDarkest = 950 · #410845
:root {
  --brand-50: #FCF2FD;
  --brand-100: #F9E5FA;
  --brand-200: #F4C4F7;
  --brand-300: #F196F7;
  --brand-400: #EB62F4;
  --brand-500: #E42EF0;
  --brand-600: #D711E4;
  --brand-700: #c40fd0;
  --brand-800: #8F0B98;
  --brand-900: #680C6E;
  --brand-950: #410845;
  --brand: #c40fd0;
  --brand-ink: #ffffff;
}

Colors that work with #c40fd0

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#EAC0ED
Hairlines and dividers
Muted text#964B9B
Captions on the surface
Accent#43C20A
Second voice, not a rival
Dark variant#700977
Hover, pressed, headers
Light variant#FCE7FD
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 #c40fd0

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#1BD00F
Analogous left#640FD0
Analogous right#D00F7B
Split-complement 1#7BD00F
Split-complement 2#0FD064
Triadic 1#D0C40F
Triadic 2#0FD0C4
Tetradic#D0640F

RGB percentages

Red76.9%
Green5.9%
Blue81.6%

CMYK percentages

Cyan5.8%
Magenta92.8%
Yellow0.0%
Key (black)18.4%

Color previews

#c40fd0 text on a black background

contrast 4.33:1

Card sample

#c40fd0 text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c40fd0

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.

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

#c40fd0, answered

What color is #c40fd0?

#c40fd0 is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 7.2). It sits at 296° on the hue wheel with 87% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #c40fd0?

rgb(196, 15, 208) — 196 red, 15 green and 208 blue out of 255, or 76.9% / 5.9% / 81.6% by channel.

Is #c40fd0 a light or a dark color?

It is a dark color. Relative luminance is 0.1663 and perceived brightness is 50%, so white text on it reaches 4.85:1.

Should I use black or white text on #c40fd0?

White. It scores 4.85:1 against #c40fd0, versus 4.33:1 for black — AA at any size.

What is the complementary color of #c40fd0?

#1BD00F sits directly opposite on the wheel. Softer options are the split-complements #7BD00F and #0FD064, which give the same contrast with far less vibration.

What colors go well with #c40fd0?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #43C20A as an accent and #700977 for hover and pressed states. For a palette, the analogous pair #640FD0 and #D00F7B stays calm, while #1BD00F is the loudest partner.

What is #c40fd0 in CMYK for printing?

cmyk(6%, 93%, 0%, 18%). 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 #c40fd0 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 #D00F95; nudged cooler, #7E0DD2.

Work with #c40fd0 in the Color Lab