Skip to content

#cc024f

a dark, electric magenta / pink · warm · closest name: Crimson

RGB
204, 2, 79
HSL
337°, 98%, 40%
CMYK
0, 99, 61, 20
Luminance
0.1345

At a glance

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

Hex
#cc024f
Hue
337°
magenta / pink
Saturation
98%
electric
Lightness
40%
dark
Brightness
80%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1345
WCAG relative
Temperature
Warm
29/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.69:1
Closest name
Crimson
ΔE2000 8.4
Where it sits
Hue337° of 360°
Saturation98%
Lightness40%
Temperature
Warm ← → Cool29% 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#cc024f
RGBrgb(204, 2, 79)
HSLhsl(337, 98%, 40%)
CMYKcmyk(0%, 99%, 61%, 20%)
LABlab(43.4 69.8 16.6)
LCHlch(43.4 71.8 13.4)
OKLCHoklch(0.540 0.215 11.0)
Decimal13369935
Display P3color(display-p3 0.800 0.008 0.310)

Copy-ready code

/* CSS */
color: #cc024f;
background-color: #cc024f;
/* Tailwind (arbitrary) */
class="text-[#cc024f] bg-[#cc024f]"
/* SCSS */
$brand: #cc024f;
/* SwiftUI */
Color(red: 0.800, green: 0.008, blue: 0.310)
/* Android */
Color.parseColor("#cc024f")
/* Flutter */
Color(0xFFCC024F)
/* Python / OpenCV (BGR) */
(79, 2, 204)

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

Accessibility — WCAG contrast

Aa
#cc024f on white: 5.69:1
AA ✓ pass · AA-large · AAA
Aa
#cc024f on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E4F50
deuteranopia · #7D744A
tritanopia · #E0002E

Color scale — 50 to 950

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

#FDF1F6
#FCE3ED
#FBC1D7
#FE90BA
#FD5897
#FD2175
#F2025E
#cc024f
#A2023F
#740630
#49041E
Base = 700Lightest = 50 · #FDF1F6Darkest = 950 · #49041E
:root {
  --brand-50: #FDF1F6;
  --brand-100: #FCE3ED;
  --brand-200: #FBC1D7;
  --brand-300: #FE90BA;
  --brand-400: #FD5897;
  --brand-500: #FD2175;
  --brand-600: #F2025E;
  --brand-700: #cc024f;
  --brand-800: #A2023F;
  --brand-900: #740630;
  --brand-950: #49041E;
  --brand: #cc024f;
  --brand-ink: #ffffff;
}

Colors that work with #cc024f

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#FAF4F7
Tinted page background
Border#EDC0D1
Hairlines and dividers
Muted text#9B4B69
Captions on the surface
Accent#00CC4B
Second voice, not a rival
Dark variant#7E0131
Hover, pressed, headers
Light variant#FFE6EF
Selected rows, tints
Dark surface#24141A
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 #cc024f

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#02CC7F
Analogous left#CC02B4
Analogous right#CC1A02
Split-complement 1#02CC1A
Split-complement 2#02B4CC
Triadic 1#4FCC02
Triadic 2#024FCC
Tetradic#B4CC02

RGB percentages

Red80.0%
Green0.8%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow61.3%
Key (black)20.0%

Color previews

#cc024f text on a black background

contrast 3.69:1

Card sample

#cc024f text on a white background

contrast 5.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc024f

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.

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

#cc024f, answered

What color is #cc024f?

#cc024f is a dark electric magenta / pink, closest to Crimson (ΔE2000 8.4). It sits at 337° on the hue wheel with 98% saturation and 40% lightness, which reads as warm.

What is the RGB value of #cc024f?

rgb(204, 2, 79) — 204 red, 2 green and 79 blue out of 255, or 80% / 0.8% / 31% by channel.

Is #cc024f a light or a dark color?

It is a dark color. Relative luminance is 0.1345 and perceived brightness is 45%, so white text on it reaches 5.69:1.

Should I use black or white text on #cc024f?

White. It scores 5.69:1 against #cc024f, versus 3.69:1 for black — AA at any size.

What is the complementary color of #cc024f?

#02CC7F sits directly opposite on the wheel. Softer options are the split-complements #02CC1A and #02B4CC, which give the same contrast with far less vibration.

What colors go well with #cc024f?

For interface work: #FAF4F7 as the surface, #EDC0D1 for borders, #9B4B69 for secondary text, #00CC4B as an accent and #7E0131 for hover and pressed states. For a palette, the analogous pair #CC02B4 and #CC1A02 stays calm, while #02CC7F is the loudest partner.

What is #cc024f in CMYK for printing?

cmyk(0%, 99%, 61%, 20%). 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 #cc024f warm or cool?

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

Work with #cc024f in the Color Lab