Skip to content

#cd155f

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

RGB
205, 21, 95
HSL
336°, 81%, 44%
CMYK
0, 90, 54, 20
Luminance
0.1434

At a glance

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

Hex
#cd155f
Hue
336°
magenta / pink
Saturation
81%
electric
Lightness
44%
dark
Brightness
80%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1434
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.43:1
Closest name
Medium Violet Red
ΔE2000 9.6
Where it sits
Hue336° of 360°
Saturation81%
Lightness44%
Temperature
Warm ← → Cool30% 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#cd155f
RGBrgb(205, 21, 95)
HSLhsl(336, 81%, 44%)
CMYKcmyk(0%, 90%, 54%, 20%)
LABlab(44.7 69.0 8.4)
LCHlch(44.7 69.5 7.0)
OKLCHoklch(0.551 0.212 5.9)
Decimal13440351
Display P3color(display-p3 0.804 0.082 0.373)

Copy-ready code

/* CSS */
color: #cd155f;
background-color: #cd155f;
/* Tailwind (arbitrary) */
class="text-[#cd155f] bg-[#cd155f]"
/* SCSS */
$brand: #cd155f;
/* SwiftUI */
Color(red: 0.804, green: 0.082, blue: 0.373)
/* Android */
Color.parseColor("#cd155f")
/* Flutter */
Color(0xFFCD155F)
/* Python / OpenCV (BGR) */
(95, 21, 205)

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

Accessibility — WCAG contrast

Aa
#cd155f on white: 5.43:1
AA ✓ pass · AA-large · AAA
Aa
#cd155f on black: 3.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4F5360
deuteranopia · #7D765B
tritanopia · #E0003A

Color scale — 50 to 950

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

#FCF2F6
#F9E6EE
#F6C6D9
#F599BE
#EF669D
#EA337D
#cd155f
#B91356
#940F45
#6B0F34
#430A21
Base = 600Lightest = 50 · #FCF2F6Darkest = 950 · #430A21
:root {
  --brand-50: #FCF2F6;
  --brand-100: #F9E6EE;
  --brand-200: #F6C6D9;
  --brand-300: #F599BE;
  --brand-400: #EF669D;
  --brand-500: #EA337D;
  --brand-600: #cd155f;
  --brand-700: #B91356;
  --brand-800: #940F45;
  --brand-900: #6B0F34;
  --brand-950: #430A21;
  --brand: #cd155f;
  --brand-ink: #ffffff;
}

Colors that work with #cd155f

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#EDC0D2
Hairlines and dividers
Muted text#9B4B6B
Captions on the surface
Accent#0EBE4C
Second voice, not a rival
Dark variant#740C36
Hover, pressed, headers
Light variant#FDE8F0
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 #cd155f

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#15CD83
Analogous left#CD15BB
Analogous right#CD2715
Split-complement 1#15CD27
Split-complement 2#15BBCD
Triadic 1#5FCD15
Triadic 2#155FCD
Tetradic#BBCD15

RGB percentages

Red80.4%
Green8.2%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta89.8%
Yellow53.7%
Key (black)19.6%

Color previews

#cd155f text on a black background

contrast 3.87:1

Card sample

#cd155f text on a white background

contrast 5.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 21, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 21, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd155f;
background: linear-gradient(135deg, #cd155f, #CD4615);

Monochromatic scale

Palettes built from #cd155f

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.

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

#cd155f, answered

What color is #cd155f?

#cd155f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 9.6). It sits at 336° on the hue wheel with 81% saturation and 44% lightness, which reads as warm.

What is the RGB value of #cd155f?

rgb(205, 21, 95) — 205 red, 21 green and 95 blue out of 255, or 80.4% / 8.2% / 37.3% by channel.

Is #cd155f a light or a dark color?

It is a dark color. Relative luminance is 0.1434 and perceived brightness is 46%, so white text on it reaches 5.43:1.

Should I use black or white text on #cd155f?

White. It scores 5.43:1 against #cd155f, versus 3.87:1 for black — AA at any size.

What is the complementary color of #cd155f?

#15CD83 sits directly opposite on the wheel. Softer options are the split-complements #15CD27 and #15BBCD, which give the same contrast with far less vibration.

What colors go well with #cd155f?

For interface work: #FAF4F7 as the surface, #EDC0D2 for borders, #9B4B6B for secondary text, #0EBE4C as an accent and #740C36 for hover and pressed states. For a palette, the analogous pair #CD15BB and #CD2715 stays calm, while #15CD83 is the loudest partner.

What is #cd155f in CMYK for printing?

cmyk(0%, 90%, 54%, 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 #cd155f warm or cool?

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

Work with #cd155f in the Color Lab