Skip to content

#ce2f7b

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

RGB
206, 47, 123
HSL
331°, 63%, 50%
CMYK
0, 77, 40, 19
Luminance
0.1658

At a glance

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

Hex
#ce2f7b
Hue
331°
magenta / pink
Saturation
63%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1658
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.86:1
Closest name
Medium Violet Red
ΔE2000 5.2
Where it sits
Hue331° of 360°
Saturation63%
Lightness50%
Temperature
Warm ← → Cool33% 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#ce2f7b
RGBrgb(206, 47, 123)
HSLhsl(331, 63%, 50%)
CMYKcmyk(0%, 77%, 40%, 19%)
LABlab(47.7 65.9 -4.5)
LCHlch(47.7 66.0 356.1)
OKLCHoklch(0.576 0.203 356.9)
Decimal13512571
Display P3color(display-p3 0.808 0.184 0.482)

Copy-ready code

/* CSS */
color: #ce2f7b;
background-color: #ce2f7b;
/* Tailwind (arbitrary) */
class="text-[#ce2f7b] bg-[#ce2f7b]"
/* SCSS */
$brand: #ce2f7b;
/* SwiftUI */
Color(red: 0.808, green: 0.184, blue: 0.482)
/* Android */
Color.parseColor("#ce2f7b")
/* Flutter */
Color(0xFFCE2F7B)
/* Python / OpenCV (BGR) */
(123, 47, 206)

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

Accessibility — WCAG contrast

Aa
#ce2f7b on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#ce2f7b on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #525E7D
deuteranopia · #7D7C77
tritanopia · #DF1551

Color scale — 50 to 950

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

#FBF4F7
#F7E8EF
#F0CCDD
#EAA4C5
#E076A9
#D5488C
#ce2f7b
#A62663
#851E4F
#611A3C
#3C1025
Base = 600Lightest = 50 · #FBF4F7Darkest = 950 · #3C1025
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F7E8EF;
  --brand-200: #F0CCDD;
  --brand-300: #EAA4C5;
  --brand-400: #E076A9;
  --brand-500: #D5488C;
  --brand-600: #ce2f7b;
  --brand-700: #A62663;
  --brand-800: #851E4F;
  --brand-900: #611A3C;
  --brand-950: #3C1025;
  --brand: #ce2f7b;
  --brand-ink: #ffffff;
}

Colors that work with #ce2f7b

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#EDC0D5
Hairlines and dividers
Muted text#9B4B71
Captions on the surface
Accent#22AA47
Second voice, not a rival
Dark variant#68183E
Hover, pressed, headers
Light variant#FAEAF2
Selected rows, tints
Dark surface#24141C
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 #ce2f7b

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#2FCE82
Analogous left#CE2FCA
Analogous right#CE322F
Split-complement 1#2FCE32
Split-complement 2#2FCACE
Triadic 1#7BCE2F
Triadic 2#2F7BCE
Tetradic#CACE2F

RGB percentages

Red80.8%
Green18.4%
Blue48.2%

CMYK percentages

Cyan0.0%
Magenta77.2%
Yellow40.3%
Key (black)19.2%

Color previews

#ce2f7b text on a black background

contrast 4.32:1

Card sample

#ce2f7b text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 47, 123, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 47, 123, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ce2f7b;
background: linear-gradient(135deg, #ce2f7b, #CE4D2F);

Monochromatic scale

Palettes built from #ce2f7b

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.

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

#ce2f7b, answered

What color is #ce2f7b?

#ce2f7b is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 5.2). It sits at 331° on the hue wheel with 63% saturation and 50% lightness, which reads as warm.

What is the RGB value of #ce2f7b?

rgb(206, 47, 123) — 206 red, 47 green and 123 blue out of 255, or 80.8% / 18.4% / 48.2% by channel.

Is #ce2f7b a light or a dark color?

It is a dark color. Relative luminance is 0.1658 and perceived brightness is 49%, so white text on it reaches 4.86:1.

Should I use black or white text on #ce2f7b?

White. It scores 4.86:1 against #ce2f7b, versus 4.32:1 for black — AA at any size.

What is the complementary color of #ce2f7b?

#2FCE82 sits directly opposite on the wheel. Softer options are the split-complements #2FCE32 and #2FCACE, which give the same contrast with far less vibration.

What colors go well with #ce2f7b?

For interface work: #FAF4F7 as the surface, #EDC0D5 for borders, #9B4B71 for secondary text, #22AA47 as an accent and #68183E for hover and pressed states. For a palette, the analogous pair #CE2FCA and #CE322F stays calm, while #2FCE82 is the loudest partner.

What is #ce2f7b in CMYK for printing?

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

Is #ce2f7b warm or cool?

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

Work with #ce2f7b in the Color Lab