Skip to content

#ba3f6c

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

RGB
186, 63, 108
HSL
338°, 49%, 49%
CMYK
0, 66, 42, 27
Luminance
0.1508

At a glance

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

Hex
#ba3f6c
Hue
338°
magenta / pink
Saturation
49%
vivid
Lightness
49%
balanced
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1508
WCAG relative
Temperature
Warm
29/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.23:1
Closest name
Medium Violet Red
ΔE2000 8.2
Where it sits
Hue338° of 360°
Saturation49%
Lightness49%
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#ba3f6c
RGBrgb(186, 63, 108)
HSLhsl(338, 49%, 49%)
CMYKcmyk(0%, 66%, 42%, 27%)
LABlab(45.7 53.1 1.4)
LCHlch(45.7 53.1 1.5)
OKLCHoklch(0.553 0.162 1.5)
Decimal12205932
Display P3color(display-p3 0.729 0.247 0.424)

Copy-ready code

/* CSS */
color: #ba3f6c;
background-color: #ba3f6c;
/* Tailwind (arbitrary) */
class="text-[#ba3f6c] bg-[#ba3f6c]"
/* SCSS */
$brand: #ba3f6c;
/* SwiftUI */
Color(red: 0.729, green: 0.247, blue: 0.424)
/* Android */
Color.parseColor("#ba3f6c")
/* Flutter */
Color(0xFFBA3F6C)
/* Python / OpenCV (BGR) */
(108, 63, 186)

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

Accessibility — WCAG contrast

Aa
#ba3f6c on white: 5.23:1
AA ✓ pass · AA-large · AAA
Aa
#ba3f6c on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #575D6D
deuteranopia · #787569
tritanopia · #C93051

Color scale — 50 to 950

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

#FAF4F7
#F6EAEE
#ECCFDA
#E3ABC0
#D481A0
#C65780
#ba3f6c
#983459
#7A2947
#592136
#381522
Base = 600Lightest = 50 · #FAF4F7Darkest = 950 · #381522
:root {
  --brand-50: #FAF4F7;
  --brand-100: #F6EAEE;
  --brand-200: #ECCFDA;
  --brand-300: #E3ABC0;
  --brand-400: #D481A0;
  --brand-500: #C65780;
  --brand-600: #ba3f6c;
  --brand-700: #983459;
  --brand-800: #7A2947;
  --brand-900: #592136;
  --brand-950: #381522;
  --brand: #ba3f6c;
  --brand-ink: #ffffff;
}

Colors that work with #ba3f6c

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#EAC2D1
Hairlines and dividers
Muted text#9B4B68
Captions on the surface
Accent#309C59
Second voice, not a rival
Dark variant#5F2037
Hover, pressed, headers
Light variant#F9ECF1
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 #ba3f6c

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#3FBA8D
Analogous left#BA3FAA
Analogous right#BA4F3F
Split-complement 1#3FBA4F
Split-complement 2#3FAABA
Triadic 1#6CBA3F
Triadic 2#3F6CBA
Tetradic#AABA3F

RGB percentages

Red72.9%
Green24.7%
Blue42.4%

CMYK percentages

Cyan0.0%
Magenta66.1%
Yellow41.9%
Key (black)27.1%

Color previews

#ba3f6c text on a black background

contrast 4.02:1

Card sample

#ba3f6c text on a white background

contrast 5.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 63, 108, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 63, 108, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba3f6c;
background: linear-gradient(135deg, #ba3f6c, #BA643F);

Monochromatic scale

Palettes built from #ba3f6c

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.

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

#ba3f6c, answered

What color is #ba3f6c?

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

What is the RGB value of #ba3f6c?

rgb(186, 63, 108) — 186 red, 63 green and 108 blue out of 255, or 72.9% / 24.7% / 42.4% by channel.

Is #ba3f6c a light or a dark color?

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

Should I use black or white text on #ba3f6c?

White. It scores 5.23:1 against #ba3f6c, versus 4.02:1 for black — AA at any size.

What is the complementary color of #ba3f6c?

#3FBA8D sits directly opposite on the wheel. Softer options are the split-complements #3FBA4F and #3FAABA, which give the same contrast with far less vibration.

What colors go well with #ba3f6c?

For interface work: #FAF4F7 as the surface, #EAC2D1 for borders, #9B4B68 for secondary text, #309C59 as an accent and #5F2037 for hover and pressed states. For a palette, the analogous pair #BA3FAA and #BA4F3F stays calm, while #3FBA8D is the loudest partner.

What is #ba3f6c in CMYK for printing?

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

Is #ba3f6c 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 #BA3F3F; nudged cooler, #BC3C9A.

Work with #ba3f6c in the Color Lab