Skip to content

#db04cc

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

RGB
219, 4, 204
HSL
304°, 96%, 44%
CMYK
0, 98, 7, 14
Luminance
0.1951

At a glance

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

Hex
#db04cc
Hue
304°
magenta / pink
Saturation
96%
electric
Lightness
44%
dark
Brightness
86%
HSV value
Perceived
54%
weighted brightness
Luminance
0.1951
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.90:1
Closest name
Medium Orchid
ΔE2000 7.7
Where it sits
Hue304° of 360°
Saturation96%
Lightness44%
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#db04cc
RGBrgb(219, 4, 204)
HSLhsl(304, 96%, 44%)
CMYKcmyk(0%, 98%, 7%, 14%)
LABlab(51.3 85.2 -46.8)
LCHlch(51.3 97.2 331.2)
OKLCHoklch(0.617 0.277 332.2)
Decimal14353612
Display P3color(display-p3 0.859 0.016 0.800)

Copy-ready code

/* CSS */
color: #db04cc;
background-color: #db04cc;
/* Tailwind (arbitrary) */
class="text-[#db04cc] bg-[#db04cc]"
/* SCSS */
$brand: #db04cc;
/* SwiftUI */
Color(red: 0.859, green: 0.016, blue: 0.800)
/* Android */
Color.parseColor("#db04cc")
/* Flutter */
Color(0xFFDB04CC)
/* Python / OpenCV (BGR) */
(204, 4, 219)

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

Accessibility — WCAG contrast

Aa
#db04cc on white: 4.28:1
AA ✗ fail · AA-large · AAA
Aa
#db04cc on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0069D0
deuteranopia · #6383C8
tritanopia · #E53478

Color scale — 50 to 950

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

#FDF1FD
#FCE4FA
#FAC1F6
#FD91F5
#FC5AF1
#FB23EC
#F004E0
#db04cc
#A00395
#73076C
#480443
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #480443
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FCE4FA;
  --brand-200: #FAC1F6;
  --brand-300: #FD91F5;
  --brand-400: #FC5AF1;
  --brand-500: #FB23EC;
  --brand-600: #F004E0;
  --brand-700: #db04cc;
  --brand-800: #A00395;
  --brand-900: #73076C;
  --brand-950: #480443;
  --brand: #db04cc;
  --brand-ink: #000000;
}

Colors that work with #db04cc

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#EDC0E9
Hairlines and dividers
Muted text#9B4B95
Captions on the surface
Accent#25CC00
Second voice, not a rival
Dark variant#7D0275
Hover, pressed, headers
Light variant#FFE6FD
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 #db04cc

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#04DB13
Analogous left#7E04DB
Analogous right#DB0460
Split-complement 1#60DB04
Split-complement 2#04DB7E
Triadic 1#CCDB04
Triadic 2#04CCDB
Tetradic#DB7E04

RGB percentages

Red85.9%
Green1.6%
Blue80.0%

CMYK percentages

Cyan0.0%
Magenta98.2%
Yellow6.8%
Key (black)14.1%

Color previews

#db04cc text on a black background

contrast 4.90:1

Card sample

#db04cc text on a white background

contrast 4.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(219, 4, 204, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(219, 4, 204, 0.45);
Border & gradient
Gradient panel
border: 3px solid #db04cc;
background: linear-gradient(135deg, #db04cc, #DB043D);

Monochromatic scale

Palettes built from #db04cc

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.

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

#db04cc, answered

What color is #db04cc?

#db04cc is a dark electric magenta / pink, closest to Medium Orchid (ΔE2000 7.7). It sits at 304° on the hue wheel with 96% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #db04cc?

rgb(219, 4, 204) — 219 red, 4 green and 204 blue out of 255, or 85.9% / 1.6% / 80% by channel.

Is #db04cc a light or a dark color?

It is a mid-tone. Relative luminance is 0.1951 and perceived brightness is 54%, so black text on it reaches 4.90:1.

Should I use black or white text on #db04cc?

Black. It scores 4.90:1 against #db04cc, versus 4.28:1 for white — AA at any size.

What is the complementary color of #db04cc?

#04DB13 sits directly opposite on the wheel. Softer options are the split-complements #60DB04 and #04DB7E, which give the same contrast with far less vibration.

What colors go well with #db04cc?

For interface work: #FAF4FA as the surface, #EDC0E9 for borders, #9B4B95 for secondary text, #25CC00 as an accent and #7D0275 for hover and pressed states. For a palette, the analogous pair #7E04DB and #DB0460 stays calm, while #04DB13 is the loudest partner.

What is #db04cc in CMYK for printing?

cmyk(0%, 98%, 7%, 14%). 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 #db04cc 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 #DB047D; nudged cooler, #9C02DD.

Work with #db04cc in the Color Lab