Skip to content

#cd256f

a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
205, 37, 111
HSL
334°, 69%, 48%
CMYK
0, 82, 46, 20
Luminance
0.1545

At a glance

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

Hex
#cd256f
Hue
334°
magenta / pink
Saturation
69%
vivid
Lightness
48%
balanced
Brightness
80%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1545
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.13:1
Closest name
Medium Violet Red
ΔE2000 6.5
Where it sits
Hue334° of 360°
Saturation69%
Lightness48%
Temperature
Warm ← → Cool31% 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#cd256f
RGBrgb(205, 37, 111)
HSLhsl(334, 69%, 48%)
CMYKcmyk(0%, 82%, 46%, 20%)
LABlab(46.3 67.2 0.7)
LCHlch(46.3 67.2 0.6)
OKLCHoklch(0.564 0.206 0.7)
Decimal13444463
Display P3color(display-p3 0.804 0.145 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd256f on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#cd256f on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #505971
deuteranopia · #7D796B
tritanopia · #DF0048

Color scale — 50 to 950

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

#FBF3F7
#F8E7EF
#F2CADB
#EEA0C2
#E570A4
#DD4185
#cd256f
#AD1F5E
#8A194B
#641639
#3F0E23
Base = 600Lightest = 50 · #FBF3F7Darkest = 950 · #3F0E23
:root {
  --brand-50: #FBF3F7;
  --brand-100: #F8E7EF;
  --brand-200: #F2CADB;
  --brand-300: #EEA0C2;
  --brand-400: #E570A4;
  --brand-500: #DD4185;
  --brand-600: #cd256f;
  --brand-700: #AD1F5E;
  --brand-800: #8A194B;
  --brand-900: #641639;
  --brand-950: #3F0E23;
  --brand: #cd256f;
  --brand-ink: #ffffff;
}

Colors that work with #cd256f

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#EDC0D4
Hairlines and dividers
Muted text#9B4B6E
Captions on the surface
Accent#1BB149
Second voice, not a rival
Dark variant#6C143A
Hover, pressed, headers
Light variant#FBE9F1
Selected rows, tints
Dark surface#24141B
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 #cd256f

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#25CD83
Analogous left#CD25C3
Analogous right#CD2F25
Split-complement 1#25CD2F
Split-complement 2#25C3CD
Triadic 1#6FCD25
Triadic 2#256FCD
Tetradic#C3CD25

RGB percentages

Red80.4%
Green14.5%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta82.0%
Yellow45.9%
Key (black)19.6%

Color previews

#cd256f text on a black background

contrast 4.09:1

Card sample

#cd256f text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd256f

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.

#cd256f 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

Converts to four-color process without much drama. Proof it anyway.

#cd256f, answered

What color is #cd256f?

#cd256f is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 6.5). It sits at 334° on the hue wheel with 69% saturation and 48% lightness, which reads as warm.

What is the RGB value of #cd256f?

rgb(205, 37, 111) — 205 red, 37 green and 111 blue out of 255, or 80.4% / 14.5% / 43.5% by channel.

Is #cd256f a light or a dark color?

It is a dark color. Relative luminance is 0.1545 and perceived brightness is 48%, so white text on it reaches 5.13:1.

Should I use black or white text on #cd256f?

White. It scores 5.13:1 against #cd256f, versus 4.09:1 for black — AA at any size.

What is the complementary color of #cd256f?

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

What colors go well with #cd256f?

For interface work: #FAF4F7 as the surface, #EDC0D4 for borders, #9B4B6E for secondary text, #1BB149 as an accent and #6C143A for hover and pressed states. For a palette, the analogous pair #CD25C3 and #CD2F25 stays calm, while #25CD83 is the loudest partner.

What is #cd256f in CMYK for printing?

cmyk(0%, 82%, 46%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cd256f warm or cool?

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

Work with #cd256f in the Color Lab