Skip to content

#da02a2

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

RGB
218, 2, 162
HSL
316°, 98%, 43%
CMYK
0, 99, 26, 15
Luminance
0.1756

At a glance

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

Hex
#da02a2
Hue
316°
magenta / pink
Saturation
98%
electric
Lightness
43%
dark
Brightness
85%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1756
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.65:1
Closest name
Medium Violet Red
ΔE2000 5.6
Where it sits
Hue316° of 360°
Saturation98%
Lightness43%
Temperature
Warm ← → Cool41% 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#da02a2
RGBrgb(218, 2, 162)
HSLhsl(316, 98%, 43%)
CMYKcmyk(0%, 99%, 26%, 15%)
LABlab(49.0 79.9 -25.9)
LCHlch(49.0 84.0 342.0)
OKLCHoklch(0.594 0.253 344.1)
Decimal14287522
Display P3color(display-p3 0.855 0.008 0.635)

Copy-ready code

/* CSS */
color: #da02a2;
background-color: #da02a2;
/* Tailwind (arbitrary) */
class="text-[#da02a2] bg-[#da02a2]"
/* SCSS */
$brand: #da02a2;
/* SwiftUI */
Color(red: 0.855, green: 0.008, blue: 0.635)
/* Android */
Color.parseColor("#da02a2")
/* Flutter */
Color(0xFFDA02A2)
/* Python / OpenCV (BGR) */
(162, 2, 218)

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

Accessibility — WCAG contrast

Aa
#da02a2 on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#da02a2 on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3360A5
deuteranopia · #747F9E
tritanopia · #E9005F

Color scale — 50 to 950

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

#FDF1FA
#FCE3F6
#FBC1EC
#FE90E1
#FD58D3
#FD21C4
#F302B4
#da02a2
#A20178
#740658
#490437
Base = 700Lightest = 50 · #FDF1FADarkest = 950 · #490437
:root {
  --brand-50: #FDF1FA;
  --brand-100: #FCE3F6;
  --brand-200: #FBC1EC;
  --brand-300: #FE90E1;
  --brand-400: #FD58D3;
  --brand-500: #FD21C4;
  --brand-600: #F302B4;
  --brand-700: #da02a2;
  --brand-800: #A20178;
  --brand-900: #740658;
  --brand-950: #490437;
  --brand: #da02a2;
  --brand-ink: #ffffff;
}

Colors that work with #da02a2

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#EDC0E1
Hairlines and dividers
Muted text#9B4B86
Captions on the surface
Accent#00CC02
Second voice, not a rival
Dark variant#7E015E
Hover, pressed, headers
Light variant#FFE6F8
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 #da02a2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links 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
  • 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#02DA3A
Analogous left#A602DA
Analogous right#DA0236
Split-complement 1#36DA02
Split-complement 2#02DAA6
Triadic 1#A2DA02
Triadic 2#02A2DA
Tetradic#DAA602

RGB percentages

Red85.5%
Green0.8%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta99.1%
Yellow25.7%
Key (black)14.5%

Color previews

#da02a2 text on a black background

contrast 4.51:1

Card sample

#da02a2 text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(218, 2, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 2, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #da02a2;
background: linear-gradient(135deg, #da02a2, #DA0212);

Monochromatic scale

Palettes built from #da02a2

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.

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

#da02a2, answered

What color is #da02a2?

#da02a2 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 5.6). It sits at 316° on the hue wheel with 98% saturation and 43% lightness, which reads as warm.

What is the RGB value of #da02a2?

rgb(218, 2, 162) — 218 red, 2 green and 162 blue out of 255, or 85.5% / 0.8% / 63.5% by channel.

Is #da02a2 a light or a dark color?

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

Should I use black or white text on #da02a2?

White. It scores 4.65:1 against #da02a2, versus 4.51:1 for black — AA at any size.

What is the complementary color of #da02a2?

#02DA3A sits directly opposite on the wheel. Softer options are the split-complements #36DA02 and #02DAA6, which give the same contrast with far less vibration.

What colors go well with #da02a2?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B86 for secondary text, #00CC02 as an accent and #7E015E for hover and pressed states. For a palette, the analogous pair #A602DA and #DA0236 stays calm, while #02DA3A is the loudest partner.

What is #da02a2 in CMYK for printing?

cmyk(0%, 99%, 26%, 15%). 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 #da02a2 warm or cool?

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

Work with #da02a2 in the Color Lab